home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / fileutil / fileutils-3.16.tar.gz / fileutils-3.16.tar / fileutils-3.16 / configure < prev    next >
Text File  |  1997-01-26  |  196KB  |  7,143 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.12 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --enable-maintainer-mode enable make rules and dependencies not useful
  16.                           (and sometimes confusing) to the casual installer"
  17. ac_help="$ac_help
  18.   --without-regex         use GNU rx in lieu of gawk's regex for matching"
  19. ac_help="$ac_help
  20.   --disable-nls           do not use Native Language Support"
  21. ac_help="$ac_help
  22.   --with-included-gettext use the GNU gettext library included here"
  23. ac_help="$ac_help
  24.   --with-catgets          use catgets functions if available"
  25.  
  26. # Initialize some variables set by options.
  27. # The variables have the same names as the options, with
  28. # dashes changed to underlines.
  29. build=NONE
  30. cache_file=./config.cache
  31. exec_prefix=NONE
  32. host=NONE
  33. no_create=
  34. nonopt=NONE
  35. no_recursion=
  36. prefix=NONE
  37. program_prefix=NONE
  38. program_suffix=NONE
  39. program_transform_name=s,x,x,
  40. silent=
  41. site=
  42. srcdir=
  43. target=NONE
  44. verbose=
  45. x_includes=NONE
  46. x_libraries=NONE
  47. bindir='${exec_prefix}/bin'
  48. sbindir='${exec_prefix}/sbin'
  49. libexecdir='${exec_prefix}/libexec'
  50. datadir='${prefix}/share'
  51. sysconfdir='${prefix}/etc'
  52. sharedstatedir='${prefix}/com'
  53. localstatedir='${prefix}/var'
  54. libdir='${exec_prefix}/lib'
  55. includedir='${prefix}/include'
  56. oldincludedir='/usr/include'
  57. infodir='${prefix}/info'
  58. mandir='${prefix}/man'
  59.  
  60. # Initialize some other variables.
  61. subdirs=
  62. MFLAGS= MAKEFLAGS=
  63. # Maximum number of lines to put in a shell here document.
  64. ac_max_here_lines=12
  65.  
  66. ac_prev=
  67. for ac_option
  68. do
  69.  
  70.   # If the previous option needs an argument, assign it.
  71.   if test -n "$ac_prev"; then
  72.     eval "$ac_prev=\$ac_option"
  73.     ac_prev=
  74.     continue
  75.   fi
  76.  
  77.   case "$ac_option" in
  78.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  79.   *) ac_optarg= ;;
  80.   esac
  81.  
  82.   # Accept the important Cygnus configure options, so we can diagnose typos.
  83.  
  84.   case "$ac_option" in
  85.  
  86.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  87.     ac_prev=bindir ;;
  88.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  89.     bindir="$ac_optarg" ;;
  90.  
  91.   -build | --build | --buil | --bui | --bu)
  92.     ac_prev=build ;;
  93.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  94.     build="$ac_optarg" ;;
  95.  
  96.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  97.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  98.     ac_prev=cache_file ;;
  99.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  100.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  101.     cache_file="$ac_optarg" ;;
  102.  
  103.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  104.     ac_prev=datadir ;;
  105.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  106.   | --da=*)
  107.     datadir="$ac_optarg" ;;
  108.  
  109.   -disable-* | --disable-*)
  110.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  111.     # Reject names that are not valid shell variable names.
  112.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  113.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  114.     fi
  115.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  116.     eval "enable_${ac_feature}=no" ;;
  117.  
  118.   -enable-* | --enable-*)
  119.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  120.     # Reject names that are not valid shell variable names.
  121.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  122.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  123.     fi
  124.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  125.     case "$ac_option" in
  126.       *=*) ;;
  127.       *) ac_optarg=yes ;;
  128.     esac
  129.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  130.  
  131.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  132.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  133.   | --exec | --exe | --ex)
  134.     ac_prev=exec_prefix ;;
  135.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  136.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  137.   | --exec=* | --exe=* | --ex=*)
  138.     exec_prefix="$ac_optarg" ;;
  139.  
  140.   -gas | --gas | --ga | --g)
  141.     # Obsolete; use --with-gas.
  142.     with_gas=yes ;;
  143.  
  144.   -help | --help | --hel | --he)
  145.     # Omit some internal or obsolete options to make the list less imposing.
  146.     # This message is too long to be a string in the A/UX 3.1 sh.
  147.     cat << EOF
  148. Usage: configure [options] [host]
  149. Options: [defaults in brackets after descriptions]
  150. Configuration:
  151.   --cache-file=FILE       cache test results in FILE
  152.   --help                  print this message
  153.   --no-create             do not create output files
  154.   --quiet, --silent       do not print \`checking...' messages
  155.   --version               print the version of autoconf that created configure
  156. Directory and file names:
  157.   --prefix=PREFIX         install architecture-independent files in PREFIX
  158.                           [$ac_default_prefix]
  159.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  160.                           [same as prefix]
  161.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  162.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  163.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  164.   --datadir=DIR           read-only architecture-independent data in DIR
  165.                           [PREFIX/share]
  166.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  167.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  168.                           [PREFIX/com]
  169.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  170.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  171.   --includedir=DIR        C header files in DIR [PREFIX/include]
  172.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  173.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  174.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  175.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  176.   --program-prefix=PREFIX prepend PREFIX to installed program names
  177.   --program-suffix=SUFFIX append SUFFIX to installed program names
  178.   --program-transform-name=PROGRAM
  179.                           run sed PROGRAM on installed program names
  180. EOF
  181.     cat << EOF
  182. Host type:
  183.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  184.   --host=HOST             configure for HOST [guessed]
  185.   --target=TARGET         configure for TARGET [TARGET=HOST]
  186. Features and packages:
  187.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  188.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  189.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  190.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  191.   --x-includes=DIR        X include files are in DIR
  192.   --x-libraries=DIR       X library files are in DIR
  193. EOF
  194.     if test -n "$ac_help"; then
  195.       echo "--enable and --with options recognized:$ac_help"
  196.     fi
  197.     exit 0 ;;
  198.  
  199.   -host | --host | --hos | --ho)
  200.     ac_prev=host ;;
  201.   -host=* | --host=* | --hos=* | --ho=*)
  202.     host="$ac_optarg" ;;
  203.  
  204.   -includedir | --includedir | --includedi | --included | --include \
  205.   | --includ | --inclu | --incl | --inc)
  206.     ac_prev=includedir ;;
  207.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  208.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  209.     includedir="$ac_optarg" ;;
  210.  
  211.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  212.     ac_prev=infodir ;;
  213.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  214.     infodir="$ac_optarg" ;;
  215.  
  216.   -libdir | --libdir | --libdi | --libd)
  217.     ac_prev=libdir ;;
  218.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  219.     libdir="$ac_optarg" ;;
  220.  
  221.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  222.   | --libexe | --libex | --libe)
  223.     ac_prev=libexecdir ;;
  224.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  225.   | --libexe=* | --libex=* | --libe=*)
  226.     libexecdir="$ac_optarg" ;;
  227.  
  228.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  229.   | --localstate | --localstat | --localsta | --localst \
  230.   | --locals | --local | --loca | --loc | --lo)
  231.     ac_prev=localstatedir ;;
  232.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  233.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  234.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  235.     localstatedir="$ac_optarg" ;;
  236.  
  237.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  238.     ac_prev=mandir ;;
  239.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  240.     mandir="$ac_optarg" ;;
  241.  
  242.   -nfp | --nfp | --nf)
  243.     # Obsolete; use --without-fp.
  244.     with_fp=no ;;
  245.  
  246.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  247.   | --no-cr | --no-c)
  248.     no_create=yes ;;
  249.  
  250.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  251.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  252.     no_recursion=yes ;;
  253.  
  254.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  255.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  256.   | --oldin | --oldi | --old | --ol | --o)
  257.     ac_prev=oldincludedir ;;
  258.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  259.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  260.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  261.     oldincludedir="$ac_optarg" ;;
  262.  
  263.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  264.     ac_prev=prefix ;;
  265.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  266.     prefix="$ac_optarg" ;;
  267.  
  268.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  269.   | --program-pre | --program-pr | --program-p)
  270.     ac_prev=program_prefix ;;
  271.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  272.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  273.     program_prefix="$ac_optarg" ;;
  274.  
  275.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  276.   | --program-suf | --program-su | --program-s)
  277.     ac_prev=program_suffix ;;
  278.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  279.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  280.     program_suffix="$ac_optarg" ;;
  281.  
  282.   -program-transform-name | --program-transform-name \
  283.   | --program-transform-nam | --program-transform-na \
  284.   | --program-transform-n | --program-transform- \
  285.   | --program-transform | --program-transfor \
  286.   | --program-transfo | --program-transf \
  287.   | --program-trans | --program-tran \
  288.   | --progr-tra | --program-tr | --program-t)
  289.     ac_prev=program_transform_name ;;
  290.   -program-transform-name=* | --program-transform-name=* \
  291.   | --program-transform-nam=* | --program-transform-na=* \
  292.   | --program-transform-n=* | --program-transform-=* \
  293.   | --program-transform=* | --program-transfor=* \
  294.   | --program-transfo=* | --program-transf=* \
  295.   | --program-trans=* | --program-tran=* \
  296.   | --progr-tra=* | --program-tr=* | --program-t=*)
  297.     program_transform_name="$ac_optarg" ;;
  298.  
  299.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  300.   | -silent | --silent | --silen | --sile | --sil)
  301.     silent=yes ;;
  302.  
  303.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  304.     ac_prev=sbindir ;;
  305.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  306.   | --sbi=* | --sb=*)
  307.     sbindir="$ac_optarg" ;;
  308.  
  309.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  310.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  311.   | --sharedst | --shareds | --shared | --share | --shar \
  312.   | --sha | --sh)
  313.     ac_prev=sharedstatedir ;;
  314.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  315.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  316.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  317.   | --sha=* | --sh=*)
  318.     sharedstatedir="$ac_optarg" ;;
  319.  
  320.   -site | --site | --sit)
  321.     ac_prev=site ;;
  322.   -site=* | --site=* | --sit=*)
  323.     site="$ac_optarg" ;;
  324.  
  325.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  326.     ac_prev=srcdir ;;
  327.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  328.     srcdir="$ac_optarg" ;;
  329.  
  330.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  331.   | --syscon | --sysco | --sysc | --sys | --sy)
  332.     ac_prev=sysconfdir ;;
  333.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  334.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  335.     sysconfdir="$ac_optarg" ;;
  336.  
  337.   -target | --target | --targe | --targ | --tar | --ta | --t)
  338.     ac_prev=target ;;
  339.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  340.     target="$ac_optarg" ;;
  341.  
  342.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  343.     verbose=yes ;;
  344.  
  345.   -version | --version | --versio | --versi | --vers)
  346.     echo "configure generated by autoconf version 2.12"
  347.     exit 0 ;;
  348.  
  349.   -with-* | --with-*)
  350.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  351.     # Reject names that are not valid shell variable names.
  352.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  353.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  354.     fi
  355.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  356.     case "$ac_option" in
  357.       *=*) ;;
  358.       *) ac_optarg=yes ;;
  359.     esac
  360.     eval "with_${ac_package}='$ac_optarg'" ;;
  361.  
  362.   -without-* | --without-*)
  363.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  364.     # Reject names that are not valid shell variable names.
  365.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  366.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  367.     fi
  368.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  369.     eval "with_${ac_package}=no" ;;
  370.  
  371.   --x)
  372.     # Obsolete; use --with-x.
  373.     with_x=yes ;;
  374.  
  375.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  376.   | --x-incl | --x-inc | --x-in | --x-i)
  377.     ac_prev=x_includes ;;
  378.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  379.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  380.     x_includes="$ac_optarg" ;;
  381.  
  382.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  383.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  384.     ac_prev=x_libraries ;;
  385.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  386.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  387.     x_libraries="$ac_optarg" ;;
  388.  
  389.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  390.     ;;
  391.  
  392.   *)
  393.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  394.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  395.     fi
  396.     if test "x$nonopt" != xNONE; then
  397.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  398.     fi
  399.     nonopt="$ac_option"
  400.     ;;
  401.  
  402.   esac
  403. done
  404.  
  405. if test -n "$ac_prev"; then
  406.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  407. fi
  408.  
  409. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  410.  
  411. # File descriptor usage:
  412. # 0 standard input
  413. # 1 file creation
  414. # 2 errors and warnings
  415. # 3 some systems may open it to /dev/tty
  416. # 4 used on the Kubota Titan
  417. # 6 checking for... messages and results
  418. # 5 compiler messages saved in config.log
  419. if test "$silent" = yes; then
  420.   exec 6>/dev/null
  421. else
  422.   exec 6>&1
  423. fi
  424. exec 5>./config.log
  425.  
  426. echo "\
  427. This file contains any messages produced by compilers while
  428. running configure, to aid debugging if configure makes a mistake.
  429. " 1>&5
  430.  
  431. # Strip out --no-create and --no-recursion so they do not pile up.
  432. # Also quote any args containing shell metacharacters.
  433. ac_configure_args=
  434. for ac_arg
  435. do
  436.   case "$ac_arg" in
  437.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  438.   | --no-cr | --no-c) ;;
  439.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  440.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  441.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  442.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  443.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  444.   esac
  445. done
  446.  
  447. # NLS nuisances.
  448. # Only set these to C if already set.  These must not be set unconditionally
  449. # because not all systems understand e.g. LANG=C (notably SCO).
  450. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  451. # Non-C LC_CTYPE values break the ctype check.
  452. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  453. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  454. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  455. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  456.  
  457. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  458. rm -rf conftest* confdefs.h
  459. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  460. echo > confdefs.h
  461.  
  462. # A filename unique to this package, relative to the directory that
  463. # configure is in, which we can look for to find out if srcdir is correct.
  464. ac_unique_file=src/ls.c
  465.  
  466. # Find the source files, if location was not specified.
  467. if test -z "$srcdir"; then
  468.   ac_srcdir_defaulted=yes
  469.   # Try the directory containing this script, then its parent.
  470.   ac_prog=$0
  471.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  472.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  473.   srcdir=$ac_confdir
  474.   if test ! -r $srcdir/$ac_unique_file; then
  475.     srcdir=..
  476.   fi
  477. else
  478.   ac_srcdir_defaulted=no
  479. fi
  480. if test ! -r $srcdir/$ac_unique_file; then
  481.   if test "$ac_srcdir_defaulted" = yes; then
  482.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  483.   else
  484.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  485.   fi
  486. fi
  487. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  488.  
  489. # Prefer explicitly selected file to automatically selected ones.
  490. if test -z "$CONFIG_SITE"; then
  491.   if test "x$prefix" != xNONE; then
  492.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  493.   else
  494.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  495.   fi
  496. fi
  497. for ac_site_file in $CONFIG_SITE; do
  498.   if test -r "$ac_site_file"; then
  499.     echo "loading site script $ac_site_file"
  500.     . "$ac_site_file"
  501.   fi
  502. done
  503.  
  504. if test -r "$cache_file"; then
  505.   echo "loading cache $cache_file"
  506.   . $cache_file
  507. else
  508.   echo "creating cache $cache_file"
  509.   > $cache_file
  510. fi
  511.  
  512. ac_ext=c
  513. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  514. ac_cpp='$CPP $CPPFLAGS'
  515. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  516. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  517. cross_compiling=$ac_cv_prog_cc_cross
  518.  
  519. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  520.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  521.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  522.     ac_n= ac_c='
  523. ' ac_t='    '
  524.   else
  525.     ac_n=-n ac_c= ac_t=
  526.   fi
  527. else
  528.   ac_n= ac_c='\c' ac_t=
  529. fi
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536. ac_aux_dir=
  537. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  538.   if test -f $ac_dir/install-sh; then
  539.     ac_aux_dir=$ac_dir
  540.     ac_install_sh="$ac_aux_dir/install-sh -c"
  541.     break
  542.   elif test -f $ac_dir/install.sh; then
  543.     ac_aux_dir=$ac_dir
  544.     ac_install_sh="$ac_aux_dir/install.sh -c"
  545.     break
  546.   fi
  547. done
  548. if test -z "$ac_aux_dir"; then
  549.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  550. fi
  551. ac_config_guess=$ac_aux_dir/config.guess
  552. ac_config_sub=$ac_aux_dir/config.sub
  553. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  554.  
  555. # Find a good install program.  We prefer a C program (faster),
  556. # so one script is as good as another.  But avoid the broken or
  557. # incompatible versions:
  558. # SysV /etc/install, /usr/sbin/install
  559. # SunOS /usr/etc/install
  560. # IRIX /sbin/install
  561. # AIX /bin/install
  562. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  563. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  564. # ./install, which can be erroneously created by make from ./install.sh.
  565. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  566. echo "configure:567: checking for a BSD compatible install" >&5
  567. if test -z "$INSTALL"; then
  568. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  569.   echo $ac_n "(cached) $ac_c" 1>&6
  570. else
  571.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  572.   for ac_dir in $PATH; do
  573.     # Account for people who put trailing slashes in PATH elements.
  574.     case "$ac_dir/" in
  575.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  576.     *)
  577.       # OSF1 and SCO ODT 3.0 have their own names for install.
  578.       for ac_prog in ginstall installbsd scoinst install; do
  579.         if test -f $ac_dir/$ac_prog; then
  580.       if test $ac_prog = install &&
  581.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  582.         # AIX install.  It has an incompatible calling convention.
  583.         # OSF/1 installbsd also uses dspmsg, but is usable.
  584.         :
  585.       else
  586.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  587.         break 2
  588.       fi
  589.     fi
  590.       done
  591.       ;;
  592.     esac
  593.   done
  594.   IFS="$ac_save_IFS"
  595.  
  596. fi
  597.   if test "${ac_cv_path_install+set}" = set; then
  598.     INSTALL="$ac_cv_path_install"
  599.   else
  600.     # As a last resort, use the slow shell script.  We don't cache a
  601.     # path for INSTALL within a source directory, because that will
  602.     # break other packages using the cache if that directory is
  603.     # removed, or if the path is relative.
  604.     INSTALL="$ac_install_sh"
  605.   fi
  606. fi
  607. echo "$ac_t""$INSTALL" 1>&6
  608.  
  609. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  610. # It thinks the first close brace ends the variable substitution.
  611. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  612.  
  613. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  614.  
  615.  
  616. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  617.  
  618.  
  619. PACKAGE=fileutils
  620.  
  621. cat >> confdefs.h <<EOF
  622. #define PACKAGE "$PACKAGE"
  623. EOF
  624.  
  625. VERSION=3.16
  626.  
  627. cat >> confdefs.h <<EOF
  628. #define VERSION "$VERSION"
  629. EOF
  630.  
  631. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  632. echo "configure:633: checking whether build environment is sane" >&5
  633. echo timestamp > conftestfile
  634. # Do this in a subshell so we don't clobber the current shell's
  635. # arguments.  FIXME: maybe try `-L' hack like GETLOADAVG test?
  636. if (set X `ls -t $srcdir/configure conftestfile`; test "$2" = conftestfile)
  637. then
  638.    # Ok.
  639.    :
  640. else
  641.    { echo "configure: error: newly created file is older than distributed files!
  642. Check your system clock" 1>&2; exit 1; }
  643. fi
  644. rm -f conftest*
  645. echo "$ac_t""yes" 1>&6
  646. if test "$program_transform_name" = s,x,x,; then
  647.   program_transform_name=
  648. else
  649.   # Double any \ or $.  echo might interpret backslashes.
  650.   cat <<\EOF_SED > conftestsed
  651. s,\\,\\\\,g; s,\$,$$,g
  652. EOF_SED
  653.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  654.   rm -f conftestsed
  655. fi
  656. test "$program_prefix" != NONE &&
  657.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  658. # Use a double $ so make ignores it.
  659. test "$program_suffix" != NONE &&
  660.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  661.  
  662. # sed with no file args requires a program.
  663. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  664.  
  665. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  666. echo "configure:667: checking whether ${MAKE-make} sets \${MAKE}" >&5
  667. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  668. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  669.   echo $ac_n "(cached) $ac_c" 1>&6
  670. else
  671.   cat > conftestmake <<\EOF
  672. all:
  673.     @echo 'ac_maketemp="${MAKE}"'
  674. EOF
  675. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  676. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  677. if test -n "$ac_maketemp"; then
  678.   eval ac_cv_prog_make_${ac_make}_set=yes
  679. else
  680.   eval ac_cv_prog_make_${ac_make}_set=no
  681. fi
  682. rm -f conftestmake
  683. fi
  684. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  685.   echo "$ac_t""yes" 1>&6
  686.   SET_MAKE=
  687. else
  688.   echo "$ac_t""no" 1>&6
  689.   SET_MAKE="MAKE=${MAKE-make}"
  690. fi
  691.  
  692. GNU_PACKAGE="GNU $PACKAGE"
  693. cat >> confdefs.h <<EOF
  694. #define GNU_PACKAGE "$GNU_PACKAGE"
  695. EOF
  696.  
  697.  
  698. echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
  699. echo "configure:700: checking whether to enable maintainer-specific portions of Makefiles" >&5
  700.     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  701. if test "${enable_maintainer_mode+set}" = set; then
  702.   enableval="$enable_maintainer_mode"
  703.   USE_MAINTAINER_MODE=$enableval
  704. else
  705.   USE_MAINTAINER_MODE=no
  706. fi
  707.  
  708.   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
  709.   if test $USE_MAINTAINER_MODE = yes; then
  710.     MAINT=
  711.   else
  712.     MAINT='#M#'
  713.   fi
  714.   
  715.  
  716.  
  717. ALL_LINGUAS="de es fr nl pl pt sl sv"
  718.  
  719.  
  720.  
  721. # Extract the first word of "ln", so it can be a program name with args.
  722. set dummy ln; ac_word=$2
  723. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  724. echo "configure:725: checking for $ac_word" >&5
  725. if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
  726.   echo $ac_n "(cached) $ac_c" 1>&6
  727. else
  728.   case "$LN" in
  729.   /*)
  730.   ac_cv_path_LN="$LN" # Let the user override the test with a path.
  731.   ;;
  732.   *)
  733.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  734.   for ac_dir in $PATH; do
  735.     test -z "$ac_dir" && ac_dir=.
  736.     if test -f $ac_dir/$ac_word; then
  737.       ac_cv_path_LN="$ac_dir/$ac_word"
  738.       break
  739.     fi
  740.   done
  741.   IFS="$ac_save_ifs"
  742.   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
  743.   ;;
  744. esac
  745. fi
  746. LN="$ac_cv_path_LN"
  747. if test -n "$LN"; then
  748.   echo "$ac_t""$LN" 1>&6
  749. else
  750.   echo "$ac_t""no" 1>&6
  751. fi
  752.  
  753. # Extract the first word of "mv", so it can be a program name with args.
  754. set dummy mv; ac_word=$2
  755. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  756. echo "configure:757: checking for $ac_word" >&5
  757. if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
  758.   echo $ac_n "(cached) $ac_c" 1>&6
  759. else
  760.   case "$MV" in
  761.   /*)
  762.   ac_cv_path_MV="$MV" # Let the user override the test with a path.
  763.   ;;
  764.   *)
  765.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  766.   for ac_dir in $PATH; do
  767.     test -z "$ac_dir" && ac_dir=.
  768.     if test -f $ac_dir/$ac_word; then
  769.       ac_cv_path_MV="$ac_dir/$ac_word"
  770.       break
  771.     fi
  772.   done
  773.   IFS="$ac_save_ifs"
  774.   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
  775.   ;;
  776. esac
  777. fi
  778. MV="$ac_cv_path_MV"
  779. if test -n "$MV"; then
  780.   echo "$ac_t""$MV" 1>&6
  781. else
  782.   echo "$ac_t""no" 1>&6
  783. fi
  784.  
  785. # Extract the first word of "rm", so it can be a program name with args.
  786. set dummy rm; ac_word=$2
  787. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  788. echo "configure:789: checking for $ac_word" >&5
  789. if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
  790.   echo $ac_n "(cached) $ac_c" 1>&6
  791. else
  792.   case "$RM" in
  793.   /*)
  794.   ac_cv_path_RM="$RM" # Let the user override the test with a path.
  795.   ;;
  796.   *)
  797.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  798.   for ac_dir in $PATH; do
  799.     test -z "$ac_dir" && ac_dir=.
  800.     if test -f $ac_dir/$ac_word; then
  801.       ac_cv_path_RM="$ac_dir/$ac_word"
  802.       break
  803.     fi
  804.   done
  805.   IFS="$ac_save_ifs"
  806.   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
  807.   ;;
  808. esac
  809. fi
  810. RM="$ac_cv_path_RM"
  811. if test -n "$RM"; then
  812.   echo "$ac_t""$RM" 1>&6
  813. else
  814.   echo "$ac_t""no" 1>&6
  815. fi
  816.  
  817. # Extract the first word of "perl", so it can be a program name with args.
  818. set dummy perl; ac_word=$2
  819. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  820. echo "configure:821: checking for $ac_word" >&5
  821. if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
  822.   echo $ac_n "(cached) $ac_c" 1>&6
  823. else
  824.   case "$PERL" in
  825.   /*)
  826.   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  827.   ;;
  828.   *)
  829.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  830.   for ac_dir in $PATH; do
  831.     test -z "$ac_dir" && ac_dir=.
  832.     if test -f $ac_dir/$ac_word; then
  833.       ac_cv_path_PERL="$ac_dir/$ac_word"
  834.       break
  835.     fi
  836.   done
  837.   IFS="$ac_save_ifs"
  838.   ;;
  839. esac
  840. fi
  841. PERL="$ac_cv_path_PERL"
  842. if test -n "$PERL"; then
  843.   echo "$ac_t""$PERL" 1>&6
  844. else
  845.   echo "$ac_t""no" 1>&6
  846. fi
  847.  
  848. # Extract the first word of "gcc", so it can be a program name with args.
  849. set dummy gcc; ac_word=$2
  850. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  851. echo "configure:852: checking for $ac_word" >&5
  852. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  853.   echo $ac_n "(cached) $ac_c" 1>&6
  854. else
  855.   if test -n "$CC"; then
  856.   ac_cv_prog_CC="$CC" # Let the user override the test.
  857. else
  858.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  859.   for ac_dir in $PATH; do
  860.     test -z "$ac_dir" && ac_dir=.
  861.     if test -f $ac_dir/$ac_word; then
  862.       ac_cv_prog_CC="gcc"
  863.       break
  864.     fi
  865.   done
  866.   IFS="$ac_save_ifs"
  867. fi
  868. fi
  869. CC="$ac_cv_prog_CC"
  870. if test -n "$CC"; then
  871.   echo "$ac_t""$CC" 1>&6
  872. else
  873.   echo "$ac_t""no" 1>&6
  874. fi
  875.  
  876. if test -z "$CC"; then
  877.   # Extract the first word of "cc", so it can be a program name with args.
  878. set dummy cc; ac_word=$2
  879. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  880. echo "configure:881: checking for $ac_word" >&5
  881. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  882.   echo $ac_n "(cached) $ac_c" 1>&6
  883. else
  884.   if test -n "$CC"; then
  885.   ac_cv_prog_CC="$CC" # Let the user override the test.
  886. else
  887.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  888.   ac_prog_rejected=no
  889.   for ac_dir in $PATH; do
  890.     test -z "$ac_dir" && ac_dir=.
  891.     if test -f $ac_dir/$ac_word; then
  892.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  893.         ac_prog_rejected=yes
  894.     continue
  895.       fi
  896.       ac_cv_prog_CC="cc"
  897.       break
  898.     fi
  899.   done
  900.   IFS="$ac_save_ifs"
  901. if test $ac_prog_rejected = yes; then
  902.   # We found a bogon in the path, so make sure we never use it.
  903.   set dummy $ac_cv_prog_CC
  904.   shift
  905.   if test $# -gt 0; then
  906.     # We chose a different compiler from the bogus one.
  907.     # However, it has the same basename, so the bogon will be chosen
  908.     # first if we set CC to just the basename; use the full file name.
  909.     shift
  910.     set dummy "$ac_dir/$ac_word" "$@"
  911.     shift
  912.     ac_cv_prog_CC="$@"
  913.   fi
  914. fi
  915. fi
  916. fi
  917. CC="$ac_cv_prog_CC"
  918. if test -n "$CC"; then
  919.   echo "$ac_t""$CC" 1>&6
  920. else
  921.   echo "$ac_t""no" 1>&6
  922. fi
  923.  
  924.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  925. fi
  926.  
  927. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  928. echo "configure:929: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  929.  
  930. ac_ext=c
  931. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  932. ac_cpp='$CPP $CPPFLAGS'
  933. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  934. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  935. cross_compiling=$ac_cv_prog_cc_cross
  936.  
  937. cat > conftest.$ac_ext <<EOF
  938. #line 939 "configure"
  939. #include "confdefs.h"
  940. main(){return(0);}
  941. EOF
  942. if { (eval echo configure:943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  943.   ac_cv_prog_cc_works=yes
  944.   # If we can't run a trivial program, we are probably using a cross compiler.
  945.   if (./conftest; exit) 2>/dev/null; then
  946.     ac_cv_prog_cc_cross=no
  947.   else
  948.     ac_cv_prog_cc_cross=yes
  949.   fi
  950. else
  951.   echo "configure: failed program was:" >&5
  952.   cat conftest.$ac_ext >&5
  953.   ac_cv_prog_cc_works=no
  954. fi
  955. rm -fr conftest*
  956.  
  957. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  958. if test $ac_cv_prog_cc_works = no; then
  959.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  960. fi
  961. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  962. echo "configure:963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  963. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  964. cross_compiling=$ac_cv_prog_cc_cross
  965.  
  966. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  967. echo "configure:968: checking whether we are using GNU C" >&5
  968. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  969.   echo $ac_n "(cached) $ac_c" 1>&6
  970. else
  971.   cat > conftest.c <<EOF
  972. #ifdef __GNUC__
  973.   yes;
  974. #endif
  975. EOF
  976. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  977.   ac_cv_prog_gcc=yes
  978. else
  979.   ac_cv_prog_gcc=no
  980. fi
  981. fi
  982.  
  983. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  984.  
  985. if test $ac_cv_prog_gcc = yes; then
  986.   GCC=yes
  987.   ac_test_CFLAGS="${CFLAGS+set}"
  988.   ac_save_CFLAGS="$CFLAGS"
  989.   CFLAGS=
  990.   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  991. echo "configure:992: checking whether ${CC-cc} accepts -g" >&5
  992. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  993.   echo $ac_n "(cached) $ac_c" 1>&6
  994. else
  995.   echo 'void f(){}' > conftest.c
  996. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  997.   ac_cv_prog_cc_g=yes
  998. else
  999.   ac_cv_prog_cc_g=no
  1000. fi
  1001. rm -f conftest*
  1002.  
  1003. fi
  1004.  
  1005. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1006.   if test "$ac_test_CFLAGS" = set; then
  1007.     CFLAGS="$ac_save_CFLAGS"
  1008.   elif test $ac_cv_prog_cc_g = yes; then
  1009.     CFLAGS="-g -O2"
  1010.   else
  1011.     CFLAGS="-O2"
  1012.   fi
  1013. else
  1014.   GCC=
  1015.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  1016. fi
  1017.  
  1018. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1019. echo "configure:1020: checking how to run the C preprocessor" >&5
  1020. # On Suns, sometimes $CPP names a directory.
  1021. if test -n "$CPP" && test -d "$CPP"; then
  1022.   CPP=
  1023. fi
  1024. if test -z "$CPP"; then
  1025. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1026.   echo $ac_n "(cached) $ac_c" 1>&6
  1027. else
  1028.     # This must be in double quotes, not single quotes, because CPP may get
  1029.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1030.   CPP="${CC-cc} -E"
  1031.   # On the NeXT, cc -E runs the code through the compiler's parser,
  1032.   # not just through cpp.
  1033.   cat > conftest.$ac_ext <<EOF
  1034. #line 1035 "configure"
  1035. #include "confdefs.h"
  1036. #include <assert.h>
  1037. Syntax Error
  1038. EOF
  1039. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1040. { (eval echo configure:1041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1041. ac_err=`grep -v '^ *+' conftest.out`
  1042. if test -z "$ac_err"; then
  1043.   :
  1044. else
  1045.   echo "$ac_err" >&5
  1046.   echo "configure: failed program was:" >&5
  1047.   cat conftest.$ac_ext >&5
  1048.   rm -rf conftest*
  1049.   CPP="${CC-cc} -E -traditional-cpp"
  1050.   cat > conftest.$ac_ext <<EOF
  1051. #line 1052 "configure"
  1052. #include "confdefs.h"
  1053. #include <assert.h>
  1054. Syntax Error
  1055. EOF
  1056. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1057. { (eval echo configure:1058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1058. ac_err=`grep -v '^ *+' conftest.out`
  1059. if test -z "$ac_err"; then
  1060.   :
  1061. else
  1062.   echo "$ac_err" >&5
  1063.   echo "configure: failed program was:" >&5
  1064.   cat conftest.$ac_ext >&5
  1065.   rm -rf conftest*
  1066.   CPP=/lib/cpp
  1067. fi
  1068. rm -f conftest*
  1069. fi
  1070. rm -f conftest*
  1071.   ac_cv_prog_CPP="$CPP"
  1072. fi
  1073.   CPP="$ac_cv_prog_CPP"
  1074. else
  1075.   ac_cv_prog_CPP="$CPP"
  1076. fi
  1077. echo "$ac_t""$CPP" 1>&6
  1078.  
  1079. if test $ac_cv_prog_gcc = yes; then
  1080.     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  1081. echo "configure:1082: checking whether ${CC-cc} needs -traditional" >&5
  1082. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  1083.   echo $ac_n "(cached) $ac_c" 1>&6
  1084. else
  1085.     ac_pattern="Autoconf.*'x'"
  1086.   cat > conftest.$ac_ext <<EOF
  1087. #line 1088 "configure"
  1088. #include "confdefs.h"
  1089. #include <sgtty.h>
  1090. Autoconf TIOCGETP
  1091. EOF
  1092. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1093.   egrep "$ac_pattern" >/dev/null 2>&1; then
  1094.   rm -rf conftest*
  1095.   ac_cv_prog_gcc_traditional=yes
  1096. else
  1097.   rm -rf conftest*
  1098.   ac_cv_prog_gcc_traditional=no
  1099. fi
  1100. rm -f conftest*
  1101.  
  1102.  
  1103.   if test $ac_cv_prog_gcc_traditional = no; then
  1104.     cat > conftest.$ac_ext <<EOF
  1105. #line 1106 "configure"
  1106. #include "confdefs.h"
  1107. #include <termio.h>
  1108. Autoconf TCGETA
  1109. EOF
  1110. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1111.   egrep "$ac_pattern" >/dev/null 2>&1; then
  1112.   rm -rf conftest*
  1113.   ac_cv_prog_gcc_traditional=yes
  1114. fi
  1115. rm -f conftest*
  1116.  
  1117.   fi
  1118. fi
  1119.  
  1120. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  1121.   if test $ac_cv_prog_gcc_traditional = yes; then
  1122.     CC="$CC -traditional"
  1123.   fi
  1124. fi
  1125.  
  1126. # Extract the first word of "ranlib", so it can be a program name with args.
  1127. set dummy ranlib; ac_word=$2
  1128. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1129. echo "configure:1130: checking for $ac_word" >&5
  1130. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1131.   echo $ac_n "(cached) $ac_c" 1>&6
  1132. else
  1133.   if test -n "$RANLIB"; then
  1134.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1135. else
  1136.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1137.   for ac_dir in $PATH; do
  1138.     test -z "$ac_dir" && ac_dir=.
  1139.     if test -f $ac_dir/$ac_word; then
  1140.       ac_cv_prog_RANLIB="ranlib"
  1141.       break
  1142.     fi
  1143.   done
  1144.   IFS="$ac_save_ifs"
  1145.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1146. fi
  1147. fi
  1148. RANLIB="$ac_cv_prog_RANLIB"
  1149. if test -n "$RANLIB"; then
  1150.   echo "$ac_t""$RANLIB" 1>&6
  1151. else
  1152.   echo "$ac_t""no" 1>&6
  1153. fi
  1154.  
  1155. for ac_prog in 'bison -y' byacc
  1156. do
  1157. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1158. set dummy $ac_prog; ac_word=$2
  1159. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1160. echo "configure:1161: checking for $ac_word" >&5
  1161. if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  1162.   echo $ac_n "(cached) $ac_c" 1>&6
  1163. else
  1164.   if test -n "$YACC"; then
  1165.   ac_cv_prog_YACC="$YACC" # Let the user override the test.
  1166. else
  1167.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1168.   for ac_dir in $PATH; do
  1169.     test -z "$ac_dir" && ac_dir=.
  1170.     if test -f $ac_dir/$ac_word; then
  1171.       ac_cv_prog_YACC="$ac_prog"
  1172.       break
  1173.     fi
  1174.   done
  1175.   IFS="$ac_save_ifs"
  1176. fi
  1177. fi
  1178. YACC="$ac_cv_prog_YACC"
  1179. if test -n "$YACC"; then
  1180.   echo "$ac_t""$YACC" 1>&6
  1181. else
  1182.   echo "$ac_t""no" 1>&6
  1183. fi
  1184.  
  1185. test -n "$YACC" && break
  1186. done
  1187. test -n "$YACC" || YACC="yacc"
  1188.  
  1189. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  1190. echo "configure:1191: checking for AIX" >&5
  1191. cat > conftest.$ac_ext <<EOF
  1192. #line 1193 "configure"
  1193. #include "confdefs.h"
  1194. #ifdef _AIX
  1195.   yes
  1196. #endif
  1197.  
  1198. EOF
  1199. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1200.   egrep "yes" >/dev/null 2>&1; then
  1201.   rm -rf conftest*
  1202.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  1203. #define _ALL_SOURCE 1
  1204. EOF
  1205.  
  1206. else
  1207.   rm -rf conftest*
  1208.   echo "$ac_t""no" 1>&6
  1209. fi
  1210. rm -f conftest*
  1211.  
  1212.  
  1213. ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
  1214. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  1215. echo "configure:1216: checking for minix/config.h" >&5
  1216. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1217.   echo $ac_n "(cached) $ac_c" 1>&6
  1218. else
  1219.   cat > conftest.$ac_ext <<EOF
  1220. #line 1221 "configure"
  1221. #include "confdefs.h"
  1222. #include <minix/config.h>
  1223. EOF
  1224. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1225. { (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1226. ac_err=`grep -v '^ *+' conftest.out`
  1227. if test -z "$ac_err"; then
  1228.   rm -rf conftest*
  1229.   eval "ac_cv_header_$ac_safe=yes"
  1230. else
  1231.   echo "$ac_err" >&5
  1232.   echo "configure: failed program was:" >&5
  1233.   cat conftest.$ac_ext >&5
  1234.   rm -rf conftest*
  1235.   eval "ac_cv_header_$ac_safe=no"
  1236. fi
  1237. rm -f conftest*
  1238. fi
  1239. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1240.   echo "$ac_t""yes" 1>&6
  1241.   MINIX=yes
  1242. else
  1243.   echo "$ac_t""no" 1>&6
  1244. MINIX=
  1245. fi
  1246.  
  1247. if test "$MINIX" = yes; then
  1248.   cat >> confdefs.h <<\EOF
  1249. #define _POSIX_SOURCE 1
  1250. EOF
  1251.  
  1252.   cat >> confdefs.h <<\EOF
  1253. #define _POSIX_1_SOURCE 2
  1254. EOF
  1255.  
  1256.   cat >> confdefs.h <<\EOF
  1257. #define _MINIX 1
  1258. EOF
  1259.  
  1260. fi
  1261.  
  1262.  
  1263. echo $ac_n "checking which of GNU rx or gawk's regex is wanted""... $ac_c" 1>&6
  1264. echo "configure:1265: checking which of GNU rx or gawk's regex is wanted" >&5
  1265. # Check whether --with-regex or --without-regex was given.
  1266. if test "${with_regex+set}" = set; then
  1267.   withval="$with_regex"
  1268.   test "$withval" = yes && am_with_regex=1
  1269. else
  1270.   am_with_regex=1
  1271. fi
  1272.  
  1273. if test -n "$am_with_regex"; then
  1274.   echo "$ac_t""regex" 1>&6
  1275.   cat >> confdefs.h <<\EOF
  1276. #define WITH_REGEX 1
  1277. EOF
  1278.  
  1279.   echo $ac_n "checking for GNU regex in libc""... $ac_c" 1>&6
  1280. echo "configure:1281: checking for GNU regex in libc" >&5
  1281. if eval "test \"`echo '$''{'am_cv_gnu_regex'+set}'`\" = set"; then
  1282.   echo $ac_n "(cached) $ac_c" 1>&6
  1283. else
  1284.   cat > conftest.$ac_ext <<EOF
  1285. #line 1286 "configure"
  1286. #include "confdefs.h"
  1287.  
  1288. int main() {
  1289. extern int re_max_failures; re_max_failures = 1
  1290. ; return 0; }
  1291. EOF
  1292. if { (eval echo configure:1293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1293.   rm -rf conftest*
  1294.   am_cv_gnu_regex=yes
  1295. else
  1296.   echo "configure: failed program was:" >&5
  1297.   cat conftest.$ac_ext >&5
  1298.   rm -rf conftest*
  1299.   am_cv_gnu_regex=no
  1300. fi
  1301. rm -f conftest*
  1302. fi
  1303.  
  1304. echo "$ac_t""$am_cv_gnu_regex" 1>&6
  1305.   if test $am_cv_gnu_regex = no; then
  1306.     LIBOBJS="$LIBOBJS regex.o"
  1307.   fi
  1308. else
  1309.   echo "$ac_t""rx" 1>&6
  1310.   echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
  1311. echo "configure:1312: checking for re_rx_search" >&5
  1312. if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
  1313.   echo $ac_n "(cached) $ac_c" 1>&6
  1314. else
  1315.   cat > conftest.$ac_ext <<EOF
  1316. #line 1317 "configure"
  1317. #include "confdefs.h"
  1318. /* System header to define __stub macros and hopefully few prototypes,
  1319.     which can conflict with char re_rx_search(); below.  */
  1320. #include <assert.h>
  1321. /* Override any gcc2 internal prototype to avoid an error.  */
  1322. /* We use char because int might match the return type of a gcc2
  1323.     builtin and then its argument prototype would still apply.  */
  1324. char re_rx_search();
  1325.  
  1326. int main() {
  1327.  
  1328. /* The GNU C library defines this for functions which it implements
  1329.     to always fail with ENOSYS.  Some functions are actually named
  1330.     something starting with __ and the normal name is an alias.  */
  1331. #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
  1332. choke me
  1333. #else
  1334. re_rx_search();
  1335. #endif
  1336.  
  1337. ; return 0; }
  1338. EOF
  1339. if { (eval echo configure:1340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1340.   rm -rf conftest*
  1341.   eval "ac_cv_func_re_rx_search=yes"
  1342. else
  1343.   echo "configure: failed program was:" >&5
  1344.   cat conftest.$ac_ext >&5
  1345.   rm -rf conftest*
  1346.   eval "ac_cv_func_re_rx_search=no"
  1347. fi
  1348. rm -f conftest*
  1349. fi
  1350.  
  1351. if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
  1352.   echo "$ac_t""yes" 1>&6
  1353.   :
  1354. else
  1355.   echo "$ac_t""no" 1>&6
  1356. LIBOBJS="$LIBOBJS rx.o"
  1357. fi
  1358.  
  1359. fi
  1360.  
  1361.  
  1362.  
  1363. echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
  1364. echo "configure:1365: checking for ${CC-cc} option to accept ANSI C" >&5
  1365. if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
  1366.   echo $ac_n "(cached) $ac_c" 1>&6
  1367. else
  1368.   am_cv_prog_cc_stdc=no
  1369. ac_save_CC="$CC"
  1370. # Don't try gcc -ansi; that turns off useful extensions and
  1371. # breaks some systems' header files.
  1372. # AIX            -qlanglvl=ansi
  1373. # Ultrix and OSF/1    -std1
  1374. # HP-UX            -Aa -D_HPUX_SOURCE
  1375. # SVR4            -Xc -D__EXTENSIONS__
  1376. for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1377. do
  1378.   CC="$ac_save_CC $ac_arg"
  1379.   cat > conftest.$ac_ext <<EOF
  1380. #line 1381 "configure"
  1381. #include "confdefs.h"
  1382. #if !defined(__STDC__) || __STDC__ != 1
  1383. choke me
  1384. #endif
  1385. /* DYNIX/ptx V4.1.3 can't compile sys/stat.h with -Xc -D__EXTENSIONS__. */
  1386. #ifdef _SEQUENT_
  1387. # include <sys/types.h>
  1388. # include <sys/stat.h>
  1389. #endif
  1390.  
  1391. int main() {
  1392.  
  1393. int test (int i, double x);
  1394. struct s1 {int (*f) (int a);};
  1395. struct s2 {int (*f) (double a);};
  1396. ; return 0; }
  1397. EOF
  1398. if { (eval echo configure:1399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1399.   rm -rf conftest*
  1400.   am_cv_prog_cc_stdc="$ac_arg"; break
  1401. else
  1402.   echo "configure: failed program was:" >&5
  1403.   cat conftest.$ac_ext >&5
  1404. fi
  1405. rm -f conftest*
  1406. done
  1407. CC="$ac_save_CC"
  1408.  
  1409. fi
  1410.  
  1411. echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
  1412. case "x$am_cv_prog_cc_stdc" in
  1413.   x|xno) ;;
  1414.   *) CC="$CC $am_cv_prog_cc_stdc" ;;
  1415. esac
  1416.  
  1417.  
  1418.  
  1419. echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
  1420. echo "configure:1421: checking for function prototypes" >&5
  1421. if test "$am_cv_prog_cc_stdc" != no; then
  1422.   echo "$ac_t""yes" 1>&6
  1423.   cat >> confdefs.h <<\EOF
  1424. #define PROTOTYPES 1
  1425. EOF
  1426.  
  1427.   U= ANSI2KNR=
  1428. else
  1429.   echo "$ac_t""no" 1>&6
  1430.   U=_ ANSI2KNR=./ansi2knr
  1431.   # Ensure some checks needed by ansi2knr itself.
  1432.   echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1433. echo "configure:1434: checking for ANSI C header files" >&5
  1434. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1435.   echo $ac_n "(cached) $ac_c" 1>&6
  1436. else
  1437.   cat > conftest.$ac_ext <<EOF
  1438. #line 1439 "configure"
  1439. #include "confdefs.h"
  1440. #include <stdlib.h>
  1441. #include <stdarg.h>
  1442. #include <string.h>
  1443. #include <float.h>
  1444. EOF
  1445. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1446. { (eval echo configure:1447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1447. ac_err=`grep -v '^ *+' conftest.out`
  1448. if test -z "$ac_err"; then
  1449.   rm -rf conftest*
  1450.   ac_cv_header_stdc=yes
  1451. else
  1452.   echo "$ac_err" >&5
  1453.   echo "configure: failed program was:" >&5
  1454.   cat conftest.$ac_ext >&5
  1455.   rm -rf conftest*
  1456.   ac_cv_header_stdc=no
  1457. fi
  1458. rm -f conftest*
  1459.  
  1460. if test $ac_cv_header_stdc = yes; then
  1461.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1462. cat > conftest.$ac_ext <<EOF
  1463. #line 1464 "configure"
  1464. #include "confdefs.h"
  1465. #include <string.h>
  1466. EOF
  1467. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1468.   egrep "memchr" >/dev/null 2>&1; then
  1469.   :
  1470. else
  1471.   rm -rf conftest*
  1472.   ac_cv_header_stdc=no
  1473. fi
  1474. rm -f conftest*
  1475.  
  1476. fi
  1477.  
  1478. if test $ac_cv_header_stdc = yes; then
  1479.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1480. cat > conftest.$ac_ext <<EOF
  1481. #line 1482 "configure"
  1482. #include "confdefs.h"
  1483. #include <stdlib.h>
  1484. EOF
  1485. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1486.   egrep "free" >/dev/null 2>&1; then
  1487.   :
  1488. else
  1489.   rm -rf conftest*
  1490.   ac_cv_header_stdc=no
  1491. fi
  1492. rm -f conftest*
  1493.  
  1494. fi
  1495.  
  1496. if test $ac_cv_header_stdc = yes; then
  1497.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1498. if test "$cross_compiling" = yes; then
  1499.   :
  1500. else
  1501.   cat > conftest.$ac_ext <<EOF
  1502. #line 1503 "configure"
  1503. #include "confdefs.h"
  1504. #include <ctype.h>
  1505. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1506. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1507. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1508. int main () { int i; for (i = 0; i < 256; i++)
  1509. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1510. exit (0); }
  1511.  
  1512. EOF
  1513. if { (eval echo configure:1514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1514. then
  1515.   :
  1516. else
  1517.   echo "configure: failed program was:" >&5
  1518.   cat conftest.$ac_ext >&5
  1519.   rm -fr conftest*
  1520.   ac_cv_header_stdc=no
  1521. fi
  1522. rm -fr conftest*
  1523. fi
  1524.  
  1525. fi
  1526. fi
  1527.  
  1528. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1529. if test $ac_cv_header_stdc = yes; then
  1530.   cat >> confdefs.h <<\EOF
  1531. #define STDC_HEADERS 1
  1532. EOF
  1533.  
  1534. fi
  1535.  
  1536.   for ac_hdr in string.h
  1537. do
  1538. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1539. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1540. echo "configure:1541: checking for $ac_hdr" >&5
  1541. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1542.   echo $ac_n "(cached) $ac_c" 1>&6
  1543. else
  1544.   cat > conftest.$ac_ext <<EOF
  1545. #line 1546 "configure"
  1546. #include "confdefs.h"
  1547. #include <$ac_hdr>
  1548. EOF
  1549. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1550. { (eval echo configure:1551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1551. ac_err=`grep -v '^ *+' conftest.out`
  1552. if test -z "$ac_err"; then
  1553.   rm -rf conftest*
  1554.   eval "ac_cv_header_$ac_safe=yes"
  1555. else
  1556.   echo "$ac_err" >&5
  1557.   echo "configure: failed program was:" >&5
  1558.   cat conftest.$ac_ext >&5
  1559.   rm -rf conftest*
  1560.   eval "ac_cv_header_$ac_safe=no"
  1561. fi
  1562. rm -f conftest*
  1563. fi
  1564. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1565.   echo "$ac_t""yes" 1>&6
  1566.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1567.   cat >> confdefs.h <<EOF
  1568. #define $ac_tr_hdr 1
  1569. EOF
  1570.  
  1571. else
  1572.   echo "$ac_t""no" 1>&6
  1573. fi
  1574. done
  1575.  
  1576. fi
  1577.  
  1578.  
  1579. echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
  1580. echo "configure:1581: checking whether sys/types.h defines makedev" >&5
  1581. if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
  1582.   echo $ac_n "(cached) $ac_c" 1>&6
  1583. else
  1584.   cat > conftest.$ac_ext <<EOF
  1585. #line 1586 "configure"
  1586. #include "confdefs.h"
  1587. #include <sys/types.h>
  1588. int main() {
  1589. return makedev(0, 0);
  1590. ; return 0; }
  1591. EOF
  1592. if { (eval echo configure:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1593.   rm -rf conftest*
  1594.   ac_cv_header_sys_types_h_makedev=yes
  1595. else
  1596.   echo "configure: failed program was:" >&5
  1597.   cat conftest.$ac_ext >&5
  1598.   rm -rf conftest*
  1599.   ac_cv_header_sys_types_h_makedev=no
  1600. fi
  1601. rm -f conftest*
  1602.  
  1603. fi
  1604.  
  1605. echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
  1606.  
  1607. if test $ac_cv_header_sys_types_h_makedev = no; then
  1608. ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
  1609. echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
  1610. echo "configure:1611: checking for sys/mkdev.h" >&5
  1611. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1612.   echo $ac_n "(cached) $ac_c" 1>&6
  1613. else
  1614.   cat > conftest.$ac_ext <<EOF
  1615. #line 1616 "configure"
  1616. #include "confdefs.h"
  1617. #include <sys/mkdev.h>
  1618. EOF
  1619. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1620. { (eval echo configure:1621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1621. ac_err=`grep -v '^ *+' conftest.out`
  1622. if test -z "$ac_err"; then
  1623.   rm -rf conftest*
  1624.   eval "ac_cv_header_$ac_safe=yes"
  1625. else
  1626.   echo "$ac_err" >&5
  1627.   echo "configure: failed program was:" >&5
  1628.   cat conftest.$ac_ext >&5
  1629.   rm -rf conftest*
  1630.   eval "ac_cv_header_$ac_safe=no"
  1631. fi
  1632. rm -f conftest*
  1633. fi
  1634. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1635.   echo "$ac_t""yes" 1>&6
  1636.   cat >> confdefs.h <<\EOF
  1637. #define MAJOR_IN_MKDEV 1
  1638. EOF
  1639.  
  1640. else
  1641.   echo "$ac_t""no" 1>&6
  1642. fi
  1643.  
  1644.  
  1645.   if test $ac_cv_header_sys_mkdev_h = no; then
  1646. ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
  1647. echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
  1648. echo "configure:1649: checking for sys/sysmacros.h" >&5
  1649. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1650.   echo $ac_n "(cached) $ac_c" 1>&6
  1651. else
  1652.   cat > conftest.$ac_ext <<EOF
  1653. #line 1654 "configure"
  1654. #include "confdefs.h"
  1655. #include <sys/sysmacros.h>
  1656. EOF
  1657. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1658. { (eval echo configure:1659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1659. ac_err=`grep -v '^ *+' conftest.out`
  1660. if test -z "$ac_err"; then
  1661.   rm -rf conftest*
  1662.   eval "ac_cv_header_$ac_safe=yes"
  1663. else
  1664.   echo "$ac_err" >&5
  1665.   echo "configure: failed program was:" >&5
  1666.   cat conftest.$ac_ext >&5
  1667.   rm -rf conftest*
  1668.   eval "ac_cv_header_$ac_safe=no"
  1669. fi
  1670. rm -f conftest*
  1671. fi
  1672. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1673.   echo "$ac_t""yes" 1>&6
  1674.   cat >> confdefs.h <<\EOF
  1675. #define MAJOR_IN_SYSMACROS 1
  1676. EOF
  1677.  
  1678. else
  1679.   echo "$ac_t""no" 1>&6
  1680. fi
  1681.  
  1682.   fi
  1683. fi
  1684.  
  1685. ac_header_dirent=no
  1686. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1687. do
  1688. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1689. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1690. echo "configure:1691: checking for $ac_hdr that defines DIR" >&5
  1691. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1692.   echo $ac_n "(cached) $ac_c" 1>&6
  1693. else
  1694.   cat > conftest.$ac_ext <<EOF
  1695. #line 1696 "configure"
  1696. #include "confdefs.h"
  1697. #include <sys/types.h>
  1698. #include <$ac_hdr>
  1699. int main() {
  1700. DIR *dirp = 0;
  1701. ; return 0; }
  1702. EOF
  1703. if { (eval echo configure:1704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1704.   rm -rf conftest*
  1705.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1706. else
  1707.   echo "configure: failed program was:" >&5
  1708.   cat conftest.$ac_ext >&5
  1709.   rm -rf conftest*
  1710.   eval "ac_cv_header_dirent_$ac_safe=no"
  1711. fi
  1712. rm -f conftest*
  1713. fi
  1714. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1715.   echo "$ac_t""yes" 1>&6
  1716.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1717.   cat >> confdefs.h <<EOF
  1718. #define $ac_tr_hdr 1
  1719. EOF
  1720.  ac_header_dirent=$ac_hdr; break
  1721. else
  1722.   echo "$ac_t""no" 1>&6
  1723. fi
  1724. done
  1725. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1726. if test $ac_header_dirent = dirent.h; then
  1727. echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
  1728. echo "configure:1729: checking for opendir in -ldir" >&5
  1729. ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  1730. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1731.   echo $ac_n "(cached) $ac_c" 1>&6
  1732. else
  1733.   ac_save_LIBS="$LIBS"
  1734. LIBS="-ldir  $LIBS"
  1735. cat > conftest.$ac_ext <<EOF
  1736. #line 1737 "configure"
  1737. #include "confdefs.h"
  1738. /* Override any gcc2 internal prototype to avoid an error.  */
  1739. /* We use char because int might match the return type of a gcc2
  1740.     builtin and then its argument prototype would still apply.  */
  1741. char opendir();
  1742.  
  1743. int main() {
  1744. opendir()
  1745. ; return 0; }
  1746. EOF
  1747. if { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1748.   rm -rf conftest*
  1749.   eval "ac_cv_lib_$ac_lib_var=yes"
  1750. else
  1751.   echo "configure: failed program was:" >&5
  1752.   cat conftest.$ac_ext >&5
  1753.   rm -rf conftest*
  1754.   eval "ac_cv_lib_$ac_lib_var=no"
  1755. fi
  1756. rm -f conftest*
  1757. LIBS="$ac_save_LIBS"
  1758.  
  1759. fi
  1760. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1761.   echo "$ac_t""yes" 1>&6
  1762.   LIBS="$LIBS -ldir"
  1763. else
  1764.   echo "$ac_t""no" 1>&6
  1765. fi
  1766.  
  1767. else
  1768. echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
  1769. echo "configure:1770: checking for opendir in -lx" >&5
  1770. ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  1771. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1772.   echo $ac_n "(cached) $ac_c" 1>&6
  1773. else
  1774.   ac_save_LIBS="$LIBS"
  1775. LIBS="-lx  $LIBS"
  1776. cat > conftest.$ac_ext <<EOF
  1777. #line 1778 "configure"
  1778. #include "confdefs.h"
  1779. /* Override any gcc2 internal prototype to avoid an error.  */
  1780. /* We use char because int might match the return type of a gcc2
  1781.     builtin and then its argument prototype would still apply.  */
  1782. char opendir();
  1783.  
  1784. int main() {
  1785. opendir()
  1786. ; return 0; }
  1787. EOF
  1788. if { (eval echo configure:1789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1789.   rm -rf conftest*
  1790.   eval "ac_cv_lib_$ac_lib_var=yes"
  1791. else
  1792.   echo "configure: failed program was:" >&5
  1793.   cat conftest.$ac_ext >&5
  1794.   rm -rf conftest*
  1795.   eval "ac_cv_lib_$ac_lib_var=no"
  1796. fi
  1797. rm -f conftest*
  1798. LIBS="$ac_save_LIBS"
  1799.  
  1800. fi
  1801. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1802.   echo "$ac_t""yes" 1>&6
  1803.   LIBS="$LIBS -lx"
  1804. else
  1805.   echo "$ac_t""no" 1>&6
  1806. fi
  1807.  
  1808. fi
  1809.  
  1810. echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
  1811. echo "configure:1812: checking whether closedir returns void" >&5
  1812. if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
  1813.   echo $ac_n "(cached) $ac_c" 1>&6
  1814. else
  1815.   if test "$cross_compiling" = yes; then
  1816.   ac_cv_func_closedir_void=yes
  1817. else
  1818.   cat > conftest.$ac_ext <<EOF
  1819. #line 1820 "configure"
  1820. #include "confdefs.h"
  1821. #include <sys/types.h>
  1822. #include <$ac_header_dirent>
  1823. int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1824. EOF
  1825. if { (eval echo configure:1826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1826. then
  1827.   ac_cv_func_closedir_void=no
  1828. else
  1829.   echo "configure: failed program was:" >&5
  1830.   cat conftest.$ac_ext >&5
  1831.   rm -fr conftest*
  1832.   ac_cv_func_closedir_void=yes
  1833. fi
  1834. rm -fr conftest*
  1835. fi
  1836.  
  1837. fi
  1838.  
  1839. echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
  1840. if test $ac_cv_func_closedir_void = yes; then
  1841.   cat >> confdefs.h <<\EOF
  1842. #define CLOSEDIR_VOID 1
  1843. EOF
  1844.  
  1845. fi
  1846.  
  1847.  
  1848. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  1849. echo "configure:1850: checking for uid_t in sys/types.h" >&5
  1850. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  1851.   echo $ac_n "(cached) $ac_c" 1>&6
  1852. else
  1853.   cat > conftest.$ac_ext <<EOF
  1854. #line 1855 "configure"
  1855. #include "confdefs.h"
  1856. #include <sys/types.h>
  1857. EOF
  1858. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1859.   egrep "uid_t" >/dev/null 2>&1; then
  1860.   rm -rf conftest*
  1861.   ac_cv_type_uid_t=yes
  1862. else
  1863.   rm -rf conftest*
  1864.   ac_cv_type_uid_t=no
  1865. fi
  1866. rm -f conftest*
  1867.  
  1868. fi
  1869.  
  1870. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  1871. if test $ac_cv_type_uid_t = no; then
  1872.   cat >> confdefs.h <<\EOF
  1873. #define uid_t int
  1874. EOF
  1875.  
  1876.   cat >> confdefs.h <<\EOF
  1877. #define gid_t int
  1878. EOF
  1879.  
  1880. fi
  1881.  
  1882. echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
  1883. echo "configure:1884: checking type of array argument to getgroups" >&5
  1884. if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
  1885.   echo $ac_n "(cached) $ac_c" 1>&6
  1886. else
  1887.   if test "$cross_compiling" = yes; then
  1888.   ac_cv_type_getgroups=cross
  1889. else
  1890.   cat > conftest.$ac_ext <<EOF
  1891. #line 1892 "configure"
  1892. #include "confdefs.h"
  1893.  
  1894. /* Thanks to Mike Rendell for this test.  */
  1895. #include <sys/types.h>
  1896. #define NGID 256
  1897. #undef MAX
  1898. #define MAX(x, y) ((x) > (y) ? (x) : (y))
  1899. main()
  1900. {
  1901.   gid_t gidset[NGID];
  1902.   int i, n;
  1903.   union { gid_t gval; long lval; }  val;
  1904.  
  1905.   val.lval = -1;
  1906.   for (i = 0; i < NGID; i++)
  1907.     gidset[i] = val.gval;
  1908.   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
  1909.                  gidset);
  1910.   /* Exit non-zero if getgroups seems to require an array of ints.  This
  1911.      happens when gid_t is short but getgroups modifies an array of ints.  */
  1912.   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
  1913. }
  1914.  
  1915. EOF
  1916. if { (eval echo configure:1917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1917. then
  1918.     ac_cv_type_getgroups=gid_t
  1919. else
  1920.   echo "configure: failed program was:" >&5
  1921.   cat conftest.$ac_ext >&5
  1922.   rm -fr conftest*
  1923.   ac_cv_type_getgroups=int
  1924. fi
  1925. rm -fr conftest*
  1926. fi
  1927.  
  1928. if test $ac_cv_type_getgroups = cross; then
  1929.         cat > conftest.$ac_ext <<EOF
  1930. #line 1931 "configure"
  1931. #include "confdefs.h"
  1932. #include <unistd.h>
  1933. EOF
  1934. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1935.   egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
  1936.   rm -rf conftest*
  1937.   ac_cv_type_getgroups=gid_t
  1938. else
  1939.   rm -rf conftest*
  1940.   ac_cv_type_getgroups=int
  1941. fi
  1942. rm -f conftest*
  1943.  
  1944. fi
  1945. fi
  1946.  
  1947. echo "$ac_t""$ac_cv_type_getgroups" 1>&6
  1948. cat >> confdefs.h <<EOF
  1949. #define GETGROUPS_T $ac_cv_type_getgroups
  1950. EOF
  1951.  
  1952.  
  1953. echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  1954. echo "configure:1955: checking for mode_t" >&5
  1955. if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  1956.   echo $ac_n "(cached) $ac_c" 1>&6
  1957. else
  1958.   cat > conftest.$ac_ext <<EOF
  1959. #line 1960 "configure"
  1960. #include "confdefs.h"
  1961. #include <sys/types.h>
  1962. #if STDC_HEADERS
  1963. #include <stdlib.h>
  1964. #include <stddef.h>
  1965. #endif
  1966. EOF
  1967. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1968.   egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1969.   rm -rf conftest*
  1970.   ac_cv_type_mode_t=yes
  1971. else
  1972.   rm -rf conftest*
  1973.   ac_cv_type_mode_t=no
  1974. fi
  1975. rm -f conftest*
  1976.  
  1977. fi
  1978. echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  1979. if test $ac_cv_type_mode_t = no; then
  1980.   cat >> confdefs.h <<\EOF
  1981. #define mode_t int
  1982. EOF
  1983.  
  1984. fi
  1985.  
  1986. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  1987. echo "configure:1988: checking for off_t" >&5
  1988. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  1989.   echo $ac_n "(cached) $ac_c" 1>&6
  1990. else
  1991.   cat > conftest.$ac_ext <<EOF
  1992. #line 1993 "configure"
  1993. #include "confdefs.h"
  1994. #include <sys/types.h>
  1995. #if STDC_HEADERS
  1996. #include <stdlib.h>
  1997. #include <stddef.h>
  1998. #endif
  1999. EOF
  2000. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2001.   egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2002.   rm -rf conftest*
  2003.   ac_cv_type_off_t=yes
  2004. else
  2005.   rm -rf conftest*
  2006.   ac_cv_type_off_t=no
  2007. fi
  2008. rm -f conftest*
  2009.  
  2010. fi
  2011. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  2012. if test $ac_cv_type_off_t = no; then
  2013.   cat >> confdefs.h <<\EOF
  2014. #define off_t long
  2015. EOF
  2016.  
  2017. fi
  2018.  
  2019. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  2020. echo "configure:2021: checking return type of signal handlers" >&5
  2021. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  2022.   echo $ac_n "(cached) $ac_c" 1>&6
  2023. else
  2024.   cat > conftest.$ac_ext <<EOF
  2025. #line 2026 "configure"
  2026. #include "confdefs.h"
  2027. #include <sys/types.h>
  2028. #include <signal.h>
  2029. #ifdef signal
  2030. #undef signal
  2031. #endif
  2032. #ifdef __cplusplus
  2033. extern "C" void (*signal (int, void (*)(int)))(int);
  2034. #else
  2035. void (*signal ()) ();
  2036. #endif
  2037.  
  2038. int main() {
  2039. int i;
  2040. ; return 0; }
  2041. EOF
  2042. if { (eval echo configure:2043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2043.   rm -rf conftest*
  2044.   ac_cv_type_signal=void
  2045. else
  2046.   echo "configure: failed program was:" >&5
  2047.   cat conftest.$ac_ext >&5
  2048.   rm -rf conftest*
  2049.   ac_cv_type_signal=int
  2050. fi
  2051. rm -f conftest*
  2052. fi
  2053.  
  2054. echo "$ac_t""$ac_cv_type_signal" 1>&6
  2055. cat >> confdefs.h <<EOF
  2056. #define RETSIGTYPE $ac_cv_type_signal
  2057. EOF
  2058.  
  2059.  
  2060. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  2061. echo "configure:2062: checking for size_t" >&5
  2062. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  2063.   echo $ac_n "(cached) $ac_c" 1>&6
  2064. else
  2065.   cat > conftest.$ac_ext <<EOF
  2066. #line 2067 "configure"
  2067. #include "confdefs.h"
  2068. #include <sys/types.h>
  2069. #if STDC_HEADERS
  2070. #include <stdlib.h>
  2071. #include <stddef.h>
  2072. #endif
  2073. EOF
  2074. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2075.   egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2076.   rm -rf conftest*
  2077.   ac_cv_type_size_t=yes
  2078. else
  2079.   rm -rf conftest*
  2080.   ac_cv_type_size_t=no
  2081. fi
  2082. rm -f conftest*
  2083.  
  2084. fi
  2085. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  2086. if test $ac_cv_type_size_t = no; then
  2087.   cat >> confdefs.h <<\EOF
  2088. #define size_t unsigned
  2089. EOF
  2090.  
  2091. fi
  2092.  
  2093. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  2094. echo "configure:2095: checking for uid_t in sys/types.h" >&5
  2095. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  2096.   echo $ac_n "(cached) $ac_c" 1>&6
  2097. else
  2098.   cat > conftest.$ac_ext <<EOF
  2099. #line 2100 "configure"
  2100. #include "confdefs.h"
  2101. #include <sys/types.h>
  2102. EOF
  2103. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2104.   egrep "uid_t" >/dev/null 2>&1; then
  2105.   rm -rf conftest*
  2106.   ac_cv_type_uid_t=yes
  2107. else
  2108.   rm -rf conftest*
  2109.   ac_cv_type_uid_t=no
  2110. fi
  2111. rm -f conftest*
  2112.  
  2113. fi
  2114.  
  2115. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  2116. if test $ac_cv_type_uid_t = no; then
  2117.   cat >> confdefs.h <<\EOF
  2118. #define uid_t int
  2119. EOF
  2120.  
  2121.   cat >> confdefs.h <<\EOF
  2122. #define gid_t int
  2123. EOF
  2124.  
  2125. fi
  2126.  
  2127. echo $ac_n "checking for ino_t""... $ac_c" 1>&6
  2128. echo "configure:2129: checking for ino_t" >&5
  2129. if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
  2130.   echo $ac_n "(cached) $ac_c" 1>&6
  2131. else
  2132.   cat > conftest.$ac_ext <<EOF
  2133. #line 2134 "configure"
  2134. #include "confdefs.h"
  2135. #include <sys/types.h>
  2136. #if STDC_HEADERS
  2137. #include <stdlib.h>
  2138. #include <stddef.h>
  2139. #endif
  2140. EOF
  2141. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2142.   egrep "ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2143.   rm -rf conftest*
  2144.   ac_cv_type_ino_t=yes
  2145. else
  2146.   rm -rf conftest*
  2147.   ac_cv_type_ino_t=no
  2148. fi
  2149. rm -f conftest*
  2150.  
  2151. fi
  2152. echo "$ac_t""$ac_cv_type_ino_t" 1>&6
  2153. if test $ac_cv_type_ino_t = no; then
  2154.   cat >> confdefs.h <<\EOF
  2155. #define ino_t unsigned long
  2156. EOF
  2157.  
  2158. fi
  2159.  
  2160.  
  2161. echo $ac_n "checking for working const""... $ac_c" 1>&6
  2162. echo "configure:2163: checking for working const" >&5
  2163. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  2164.   echo $ac_n "(cached) $ac_c" 1>&6
  2165. else
  2166.   cat > conftest.$ac_ext <<EOF
  2167. #line 2168 "configure"
  2168. #include "confdefs.h"
  2169.  
  2170. int main() {
  2171.  
  2172. /* Ultrix mips cc rejects this.  */
  2173. typedef int charset[2]; const charset x;
  2174. /* SunOS 4.1.1 cc rejects this.  */
  2175. char const *const *ccp;
  2176. char **p;
  2177. /* NEC SVR4.0.2 mips cc rejects this.  */
  2178. struct point {int x, y;};
  2179. static struct point const zero = {0,0};
  2180. /* AIX XL C 1.02.0.0 rejects this.
  2181.    It does not let you subtract one const X* pointer from another in an arm
  2182.    of an if-expression whose if-part is not a constant expression */
  2183. const char *g = "string";
  2184. ccp = &g + (g ? g-g : 0);
  2185. /* HPUX 7.0 cc rejects these. */
  2186. ++ccp;
  2187. p = (char**) ccp;
  2188. ccp = (char const *const *) p;
  2189. { /* SCO 3.2v4 cc rejects this.  */
  2190.   char *t;
  2191.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  2192.  
  2193.   *t++ = 0;
  2194. }
  2195. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  2196.   int x[] = {25, 17};
  2197.   const int *foo = &x[0];
  2198.   ++foo;
  2199. }
  2200. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2201.   typedef const int *iptr;
  2202.   iptr p = 0;
  2203.   ++p;
  2204. }
  2205. { /* AIX XL C 1.02.0.0 rejects this saying
  2206.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2207.   struct s { int j; const int *ap[3]; };
  2208.   struct s *b; b->j = 5;
  2209. }
  2210. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2211.   const int foo = 10;
  2212. }
  2213.  
  2214. ; return 0; }
  2215. EOF
  2216. if { (eval echo configure:2217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2217.   rm -rf conftest*
  2218.   ac_cv_c_const=yes
  2219. else
  2220.   echo "configure: failed program was:" >&5
  2221.   cat conftest.$ac_ext >&5
  2222.   rm -rf conftest*
  2223.   ac_cv_c_const=no
  2224. fi
  2225. rm -f conftest*
  2226. fi
  2227.  
  2228. echo "$ac_t""$ac_cv_c_const" 1>&6
  2229. if test $ac_cv_c_const = no; then
  2230.   cat >> confdefs.h <<\EOF
  2231. #define const 
  2232. EOF
  2233.  
  2234. fi
  2235.  
  2236. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2237. echo "configure:2238: checking for ANSI C header files" >&5
  2238. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  2239.   echo $ac_n "(cached) $ac_c" 1>&6
  2240. else
  2241.   cat > conftest.$ac_ext <<EOF
  2242. #line 2243 "configure"
  2243. #include "confdefs.h"
  2244. #include <stdlib.h>
  2245. #include <stdarg.h>
  2246. #include <string.h>
  2247. #include <float.h>
  2248. EOF
  2249. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2250. { (eval echo configure:2251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2251. ac_err=`grep -v '^ *+' conftest.out`
  2252. if test -z "$ac_err"; then
  2253.   rm -rf conftest*
  2254.   ac_cv_header_stdc=yes
  2255. else
  2256.   echo "$ac_err" >&5
  2257.   echo "configure: failed program was:" >&5
  2258.   cat conftest.$ac_ext >&5
  2259.   rm -rf conftest*
  2260.   ac_cv_header_stdc=no
  2261. fi
  2262. rm -f conftest*
  2263.  
  2264. if test $ac_cv_header_stdc = yes; then
  2265.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2266. cat > conftest.$ac_ext <<EOF
  2267. #line 2268 "configure"
  2268. #include "confdefs.h"
  2269. #include <string.h>
  2270. EOF
  2271. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2272.   egrep "memchr" >/dev/null 2>&1; then
  2273.   :
  2274. else
  2275.   rm -rf conftest*
  2276.   ac_cv_header_stdc=no
  2277. fi
  2278. rm -f conftest*
  2279.  
  2280. fi
  2281.  
  2282. if test $ac_cv_header_stdc = yes; then
  2283.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2284. cat > conftest.$ac_ext <<EOF
  2285. #line 2286 "configure"
  2286. #include "confdefs.h"
  2287. #include <stdlib.h>
  2288. EOF
  2289. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2290.   egrep "free" >/dev/null 2>&1; then
  2291.   :
  2292. else
  2293.   rm -rf conftest*
  2294.   ac_cv_header_stdc=no
  2295. fi
  2296. rm -f conftest*
  2297.  
  2298. fi
  2299.  
  2300. if test $ac_cv_header_stdc = yes; then
  2301.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2302. if test "$cross_compiling" = yes; then
  2303.   :
  2304. else
  2305.   cat > conftest.$ac_ext <<EOF
  2306. #line 2307 "configure"
  2307. #include "confdefs.h"
  2308. #include <ctype.h>
  2309. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2310. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2311. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2312. int main () { int i; for (i = 0; i < 256; i++)
  2313. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2314. exit (0); }
  2315.  
  2316. EOF
  2317. if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  2318. then
  2319.   :
  2320. else
  2321.   echo "configure: failed program was:" >&5
  2322.   cat conftest.$ac_ext >&5
  2323.   rm -fr conftest*
  2324.   ac_cv_header_stdc=no
  2325. fi
  2326. rm -fr conftest*
  2327. fi
  2328.  
  2329. fi
  2330. fi
  2331.  
  2332. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2333. if test $ac_cv_header_stdc = yes; then
  2334.   cat >> confdefs.h <<\EOF
  2335. #define STDC_HEADERS 1
  2336. EOF
  2337.  
  2338. fi
  2339.  
  2340. echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
  2341. echo "configure:2342: checking whether struct tm is in sys/time.h or time.h" >&5
  2342. if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  2343.   echo $ac_n "(cached) $ac_c" 1>&6
  2344. else
  2345.   cat > conftest.$ac_ext <<EOF
  2346. #line 2347 "configure"
  2347. #include "confdefs.h"
  2348. #include <sys/types.h>
  2349. #include <time.h>
  2350. int main() {
  2351. struct tm *tp; tp->tm_sec;
  2352. ; return 0; }
  2353. EOF
  2354. if { (eval echo configure:2355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2355.   rm -rf conftest*
  2356.   ac_cv_struct_tm=time.h
  2357. else
  2358.   echo "configure: failed program was:" >&5
  2359.   cat conftest.$ac_ext >&5
  2360.   rm -rf conftest*
  2361.   ac_cv_struct_tm=sys/time.h
  2362. fi
  2363. rm -f conftest*
  2364. fi
  2365.  
  2366. echo "$ac_t""$ac_cv_struct_tm" 1>&6
  2367. if test $ac_cv_struct_tm = sys/time.h; then
  2368.   cat >> confdefs.h <<\EOF
  2369. #define TM_IN_SYS_TIME 1
  2370. EOF
  2371.  
  2372. fi
  2373.  
  2374. echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
  2375. echo "configure:2376: checking for st_blocks in struct stat" >&5
  2376. if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
  2377.   echo $ac_n "(cached) $ac_c" 1>&6
  2378. else
  2379.   cat > conftest.$ac_ext <<EOF
  2380. #line 2381 "configure"
  2381. #include "confdefs.h"
  2382. #include <sys/types.h>
  2383. #include <sys/stat.h>
  2384. int main() {
  2385. struct stat s; s.st_blocks;
  2386. ; return 0; }
  2387. EOF
  2388. if { (eval echo configure:2389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2389.   rm -rf conftest*
  2390.   ac_cv_struct_st_blocks=yes
  2391. else
  2392.   echo "configure: failed program was:" >&5
  2393.   cat conftest.$ac_ext >&5
  2394.   rm -rf conftest*
  2395.   ac_cv_struct_st_blocks=no
  2396. fi
  2397. rm -f conftest*
  2398. fi
  2399.  
  2400. echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
  2401. if test $ac_cv_struct_st_blocks = yes; then
  2402.   cat >> confdefs.h <<\EOF
  2403. #define HAVE_ST_BLOCKS 1
  2404. EOF
  2405.  
  2406. else
  2407.   LIBOBJS="$LIBOBJS fileblocks.o"
  2408. fi
  2409.  
  2410. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  2411. echo "configure:2412: checking whether time.h and sys/time.h may both be included" >&5
  2412. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  2413.   echo $ac_n "(cached) $ac_c" 1>&6
  2414. else
  2415.   cat > conftest.$ac_ext <<EOF
  2416. #line 2417 "configure"
  2417. #include "confdefs.h"
  2418. #include <sys/types.h>
  2419. #include <sys/time.h>
  2420. #include <time.h>
  2421. int main() {
  2422. struct tm *tp;
  2423. ; return 0; }
  2424. EOF
  2425. if { (eval echo configure:2426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2426.   rm -rf conftest*
  2427.   ac_cv_header_time=yes
  2428. else
  2429.   echo "configure: failed program was:" >&5
  2430.   cat conftest.$ac_ext >&5
  2431.   rm -rf conftest*
  2432.   ac_cv_header_time=no
  2433. fi
  2434. rm -f conftest*
  2435. fi
  2436.  
  2437. echo "$ac_t""$ac_cv_header_time" 1>&6
  2438. if test $ac_cv_header_time = yes; then
  2439.   cat >> confdefs.h <<\EOF
  2440. #define TIME_WITH_SYS_TIME 1
  2441. EOF
  2442.  
  2443. fi
  2444.  
  2445. echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
  2446. echo "configure:2447: checking whether stat file-mode macros are broken" >&5
  2447. if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
  2448.   echo $ac_n "(cached) $ac_c" 1>&6
  2449. else
  2450.   cat > conftest.$ac_ext <<EOF
  2451. #line 2452 "configure"
  2452. #include "confdefs.h"
  2453. #include <sys/types.h>
  2454. #include <sys/stat.h>
  2455.  
  2456. #if defined(S_ISBLK) && defined(S_IFDIR)
  2457. # if S_ISBLK (S_IFDIR)
  2458. You lose.
  2459. # endif
  2460. #endif
  2461.  
  2462. #if defined(S_ISBLK) && defined(S_IFCHR)
  2463. # if S_ISBLK (S_IFCHR)
  2464. You lose.
  2465. # endif
  2466. #endif
  2467.  
  2468. #if defined(S_ISLNK) && defined(S_IFREG)
  2469. # if S_ISLNK (S_IFREG)
  2470. You lose.
  2471. # endif
  2472. #endif
  2473.  
  2474. #if defined(S_ISSOCK) && defined(S_IFREG)
  2475. # if S_ISSOCK (S_IFREG)
  2476. You lose.
  2477. # endif
  2478. #endif
  2479.  
  2480. EOF
  2481. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2482.   egrep "You lose" >/dev/null 2>&1; then
  2483.   rm -rf conftest*
  2484.   ac_cv_header_stat_broken=yes
  2485. else
  2486.   rm -rf conftest*
  2487.   ac_cv_header_stat_broken=no
  2488. fi
  2489. rm -f conftest*
  2490.  
  2491. fi
  2492.  
  2493. echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
  2494. if test $ac_cv_header_stat_broken = yes; then
  2495.   cat >> confdefs.h <<\EOF
  2496. #define STAT_MACROS_BROKEN 1
  2497. EOF
  2498.  
  2499. fi
  2500.  
  2501.  
  2502. echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
  2503. echo "configure:2504: checking for strerror in -lcposix" >&5
  2504. ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
  2505. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2506.   echo $ac_n "(cached) $ac_c" 1>&6
  2507. else
  2508.   ac_save_LIBS="$LIBS"
  2509. LIBS="-lcposix  $LIBS"
  2510. cat > conftest.$ac_ext <<EOF
  2511. #line 2512 "configure"
  2512. #include "confdefs.h"
  2513. /* Override any gcc2 internal prototype to avoid an error.  */
  2514. /* We use char because int might match the return type of a gcc2
  2515.     builtin and then its argument prototype would still apply.  */
  2516. char strerror();
  2517.  
  2518. int main() {
  2519. strerror()
  2520. ; return 0; }
  2521. EOF
  2522. if { (eval echo configure:2523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2523.   rm -rf conftest*
  2524.   eval "ac_cv_lib_$ac_lib_var=yes"
  2525. else
  2526.   echo "configure: failed program was:" >&5
  2527.   cat conftest.$ac_ext >&5
  2528.   rm -rf conftest*
  2529.   eval "ac_cv_lib_$ac_lib_var=no"
  2530. fi
  2531. rm -f conftest*
  2532. LIBS="$ac_save_LIBS"
  2533.  
  2534. fi
  2535. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2536.   echo "$ac_t""yes" 1>&6
  2537.   LIBS="$LIBS -lcposix"
  2538. else
  2539.   echo "$ac_t""no" 1>&6
  2540. fi
  2541.  
  2542.  
  2543. for ac_hdr in string.h fcntl.h limits.h sys/time.h sys/timeb.h \
  2544.     errno.h unistd.h \
  2545.     sys/param.h sys/statfs.h sys/fstyp.h mnttab.h mntent.h utime.h \
  2546.     sys/statvfs.h sys/vfs.h sys/mount.h sys/filsys.h sys/fs_types.h \
  2547.     sys/wait.h sys/ioctl.h sys/fs/s5param.h values.h
  2548. do
  2549. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2550. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2551. echo "configure:2552: checking for $ac_hdr" >&5
  2552. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2553.   echo $ac_n "(cached) $ac_c" 1>&6
  2554. else
  2555.   cat > conftest.$ac_ext <<EOF
  2556. #line 2557 "configure"
  2557. #include "confdefs.h"
  2558. #include <$ac_hdr>
  2559. EOF
  2560. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2561. { (eval echo configure:2562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2562. ac_err=`grep -v '^ *+' conftest.out`
  2563. if test -z "$ac_err"; then
  2564.   rm -rf conftest*
  2565.   eval "ac_cv_header_$ac_safe=yes"
  2566. else
  2567.   echo "$ac_err" >&5
  2568.   echo "configure: failed program was:" >&5
  2569.   cat conftest.$ac_ext >&5
  2570.   rm -rf conftest*
  2571.   eval "ac_cv_header_$ac_safe=no"
  2572. fi
  2573. rm -f conftest*
  2574. fi
  2575. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2576.   echo "$ac_t""yes" 1>&6
  2577.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2578.   cat >> confdefs.h <<EOF
  2579. #define $ac_tr_hdr 1
  2580. EOF
  2581.  
  2582. else
  2583.   echo "$ac_t""no" 1>&6
  2584. fi
  2585. done
  2586.  
  2587. for ac_func in basename euidaccess memcpy memcmp memset
  2588. do
  2589. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2590. echo "configure:2591: checking for $ac_func" >&5
  2591. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2592.   echo $ac_n "(cached) $ac_c" 1>&6
  2593. else
  2594.   cat > conftest.$ac_ext <<EOF
  2595. #line 2596 "configure"
  2596. #include "confdefs.h"
  2597. /* System header to define __stub macros and hopefully few prototypes,
  2598.     which can conflict with char $ac_func(); below.  */
  2599. #include <assert.h>
  2600. /* Override any gcc2 internal prototype to avoid an error.  */
  2601. /* We use char because int might match the return type of a gcc2
  2602.     builtin and then its argument prototype would still apply.  */
  2603. char $ac_func();
  2604.  
  2605. int main() {
  2606.  
  2607. /* The GNU C library defines this for functions which it implements
  2608.     to always fail with ENOSYS.  Some functions are actually named
  2609.     something starting with __ and the normal name is an alias.  */
  2610. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2611. choke me
  2612. #else
  2613. $ac_func();
  2614. #endif
  2615.  
  2616. ; return 0; }
  2617. EOF
  2618. if { (eval echo configure:2619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2619.   rm -rf conftest*
  2620.   eval "ac_cv_func_$ac_func=yes"
  2621. else
  2622.   echo "configure: failed program was:" >&5
  2623.   cat conftest.$ac_ext >&5
  2624.   rm -rf conftest*
  2625.   eval "ac_cv_func_$ac_func=no"
  2626. fi
  2627. rm -f conftest*
  2628. fi
  2629.  
  2630. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2631.   echo "$ac_t""yes" 1>&6
  2632.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2633.   cat >> confdefs.h <<EOF
  2634. #define $ac_tr_func 1
  2635. EOF
  2636.  
  2637. else
  2638.   echo "$ac_t""no" 1>&6
  2639. LIBOBJS="$LIBOBJS ${ac_func}.o"
  2640. fi
  2641. done
  2642.  
  2643.  
  2644.  
  2645. echo $ac_n "checking for group_member""... $ac_c" 1>&6
  2646. echo "configure:2647: checking for group_member" >&5
  2647. if eval "test \"`echo '$''{'ac_cv_func_group_member'+set}'`\" = set"; then
  2648.   echo $ac_n "(cached) $ac_c" 1>&6
  2649. else
  2650.   cat > conftest.$ac_ext <<EOF
  2651. #line 2652 "configure"
  2652. #include "confdefs.h"
  2653. /* System header to define __stub macros and hopefully few prototypes,
  2654.     which can conflict with char group_member(); below.  */
  2655. #include <assert.h>
  2656. /* Override any gcc2 internal prototype to avoid an error.  */
  2657. /* We use char because int might match the return type of a gcc2
  2658.     builtin and then its argument prototype would still apply.  */
  2659. char group_member();
  2660.  
  2661. int main() {
  2662.  
  2663. /* The GNU C library defines this for functions which it implements
  2664.     to always fail with ENOSYS.  Some functions are actually named
  2665.     something starting with __ and the normal name is an alias.  */
  2666. #if defined (__stub_group_member) || defined (__stub___group_member)
  2667. choke me
  2668. #else
  2669. group_member();
  2670. #endif
  2671.  
  2672. ; return 0; }
  2673. EOF
  2674. if { (eval echo configure:2675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2675.   rm -rf conftest*
  2676.   eval "ac_cv_func_group_member=yes"
  2677. else
  2678.   echo "configure: failed program was:" >&5
  2679.   cat conftest.$ac_ext >&5
  2680.   rm -rf conftest*
  2681.   eval "ac_cv_func_group_member=no"
  2682. fi
  2683. rm -f conftest*
  2684. fi
  2685.  
  2686. if eval "test \"`echo '$ac_cv_func_'group_member`\" = yes"; then
  2687.   echo "$ac_t""yes" 1>&6
  2688.   :
  2689. else
  2690.   echo "$ac_t""no" 1>&6
  2691. LIBOBJS="$LIBOBJS group-member.o"
  2692. fi
  2693.  
  2694.  
  2695.  
  2696. for ac_func in mkdir rmdir \
  2697.  
  2698. do
  2699. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2700. echo "configure:2701: checking for $ac_func" >&5
  2701. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2702.   echo $ac_n "(cached) $ac_c" 1>&6
  2703. else
  2704.   cat > conftest.$ac_ext <<EOF
  2705. #line 2706 "configure"
  2706. #include "confdefs.h"
  2707. /* System header to define __stub macros and hopefully few prototypes,
  2708.     which can conflict with char $ac_func(); below.  */
  2709. #include <assert.h>
  2710. /* Override any gcc2 internal prototype to avoid an error.  */
  2711. /* We use char because int might match the return type of a gcc2
  2712.     builtin and then its argument prototype would still apply.  */
  2713. char $ac_func();
  2714.  
  2715. int main() {
  2716.  
  2717. /* The GNU C library defines this for functions which it implements
  2718.     to always fail with ENOSYS.  Some functions are actually named
  2719.     something starting with __ and the normal name is an alias.  */
  2720. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2721. choke me
  2722. #else
  2723. $ac_func();
  2724. #endif
  2725.  
  2726. ; return 0; }
  2727. EOF
  2728. if { (eval echo configure:2729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2729.   rm -rf conftest*
  2730.   eval "ac_cv_func_$ac_func=yes"
  2731. else
  2732.   echo "configure: failed program was:" >&5
  2733.   cat conftest.$ac_ext >&5
  2734.   rm -rf conftest*
  2735.   eval "ac_cv_func_$ac_func=no"
  2736. fi
  2737. rm -f conftest*
  2738. fi
  2739.  
  2740. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2741.   echo "$ac_t""yes" 1>&6
  2742.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2743.   cat >> confdefs.h <<EOF
  2744. #define $ac_tr_func 1
  2745. EOF
  2746.  
  2747. else
  2748.   echo "$ac_t""no" 1>&6
  2749. LIBOBJS="$LIBOBJS ${ac_func}.o"
  2750. fi
  2751. done
  2752.  
  2753.  
  2754. for ac_func in rename rpmatch stpcpy strcasecmp strdup
  2755. do
  2756. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2757. echo "configure:2758: checking for $ac_func" >&5
  2758. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2759.   echo $ac_n "(cached) $ac_c" 1>&6
  2760. else
  2761.   cat > conftest.$ac_ext <<EOF
  2762. #line 2763 "configure"
  2763. #include "confdefs.h"
  2764. /* System header to define __stub macros and hopefully few prototypes,
  2765.     which can conflict with char $ac_func(); below.  */
  2766. #include <assert.h>
  2767. /* Override any gcc2 internal prototype to avoid an error.  */
  2768. /* We use char because int might match the return type of a gcc2
  2769.     builtin and then its argument prototype would still apply.  */
  2770. char $ac_func();
  2771.  
  2772. int main() {
  2773.  
  2774. /* The GNU C library defines this for functions which it implements
  2775.     to always fail with ENOSYS.  Some functions are actually named
  2776.     something starting with __ and the normal name is an alias.  */
  2777. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2778. choke me
  2779. #else
  2780. $ac_func();
  2781. #endif
  2782.  
  2783. ; return 0; }
  2784. EOF
  2785. if { (eval echo configure:2786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2786.   rm -rf conftest*
  2787.   eval "ac_cv_func_$ac_func=yes"
  2788. else
  2789.   echo "configure: failed program was:" >&5
  2790.   cat conftest.$ac_ext >&5
  2791.   rm -rf conftest*
  2792.   eval "ac_cv_func_$ac_func=no"
  2793. fi
  2794. rm -f conftest*
  2795. fi
  2796.  
  2797. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2798.   echo "$ac_t""yes" 1>&6
  2799.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2800.   cat >> confdefs.h <<EOF
  2801. #define $ac_tr_func 1
  2802. EOF
  2803.  
  2804. else
  2805.   echo "$ac_t""no" 1>&6
  2806. LIBOBJS="$LIBOBJS ${ac_func}.o"
  2807. fi
  2808. done
  2809.  
  2810.  
  2811.  
  2812. for ac_func in strndup strstr strtol strtoul
  2813. do
  2814. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2815. echo "configure:2816: checking for $ac_func" >&5
  2816. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2817.   echo $ac_n "(cached) $ac_c" 1>&6
  2818. else
  2819.   cat > conftest.$ac_ext <<EOF
  2820. #line 2821 "configure"
  2821. #include "confdefs.h"
  2822. /* System header to define __stub macros and hopefully few prototypes,
  2823.     which can conflict with char $ac_func(); below.  */
  2824. #include <assert.h>
  2825. /* Override any gcc2 internal prototype to avoid an error.  */
  2826. /* We use char because int might match the return type of a gcc2
  2827.     builtin and then its argument prototype would still apply.  */
  2828. char $ac_func();
  2829.  
  2830. int main() {
  2831.  
  2832. /* The GNU C library defines this for functions which it implements
  2833.     to always fail with ENOSYS.  Some functions are actually named
  2834.     something starting with __ and the normal name is an alias.  */
  2835. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2836. choke me
  2837. #else
  2838. $ac_func();
  2839. #endif
  2840.  
  2841. ; return 0; }
  2842. EOF
  2843. if { (eval echo configure:2844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2844.   rm -rf conftest*
  2845.   eval "ac_cv_func_$ac_func=yes"
  2846. else
  2847.   echo "configure: failed program was:" >&5
  2848.   cat conftest.$ac_ext >&5
  2849.   rm -rf conftest*
  2850.   eval "ac_cv_func_$ac_func=no"
  2851. fi
  2852. rm -f conftest*
  2853. fi
  2854.  
  2855. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2856.   echo "$ac_t""yes" 1>&6
  2857.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2858.   cat >> confdefs.h <<EOF
  2859. #define $ac_tr_func 1
  2860. EOF
  2861.  
  2862. else
  2863.   echo "$ac_t""no" 1>&6
  2864. LIBOBJS="$LIBOBJS ${ac_func}.o"
  2865. fi
  2866. done
  2867.  
  2868.  
  2869.  
  2870.  for ac_hdr in sys/time.h
  2871. do
  2872. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2873. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2874. echo "configure:2875: checking for $ac_hdr" >&5
  2875. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2876.   echo $ac_n "(cached) $ac_c" 1>&6
  2877. else
  2878.   cat > conftest.$ac_ext <<EOF
  2879. #line 2880 "configure"
  2880. #include "confdefs.h"
  2881. #include <$ac_hdr>
  2882. EOF
  2883. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2884. { (eval echo configure:2885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2885. ac_err=`grep -v '^ *+' conftest.out`
  2886. if test -z "$ac_err"; then
  2887.   rm -rf conftest*
  2888.   eval "ac_cv_header_$ac_safe=yes"
  2889. else
  2890.   echo "$ac_err" >&5
  2891.   echo "configure: failed program was:" >&5
  2892.   cat conftest.$ac_ext >&5
  2893.   rm -rf conftest*
  2894.   eval "ac_cv_header_$ac_safe=no"
  2895. fi
  2896. rm -f conftest*
  2897. fi
  2898. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2899.   echo "$ac_t""yes" 1>&6
  2900.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2901.   cat >> confdefs.h <<EOF
  2902. #define $ac_tr_hdr 1
  2903. EOF
  2904.  
  2905. else
  2906.   echo "$ac_t""no" 1>&6
  2907. fi
  2908. done
  2909.  
  2910.  echo $ac_n "checking for working mktime""... $ac_c" 1>&6
  2911. echo "configure:2912: checking for working mktime" >&5
  2912. if eval "test \"`echo '$''{'am_cv_func_working_mktime'+set}'`\" = set"; then
  2913.   echo $ac_n "(cached) $ac_c" 1>&6
  2914. else
  2915.   if test "$cross_compiling" = yes; then
  2916.            am_cv_func_working_mktime=no
  2917. else
  2918.   cat > conftest.$ac_ext <<EOF
  2919. #line 2920 "configure"
  2920. #include "confdefs.h"
  2921. /* Test program from Paul Eggert (eggert@twinsun.com)
  2922.    and Tony Leneis (tony@plaza.ds.adp.com).  */
  2923. #if TIME_WITH_SYS_TIME
  2924. # include <sys/time.h>
  2925. # include <time.h>
  2926. #else
  2927. # if HAVE_SYS_TIME_H
  2928. #  include <sys/time.h>
  2929. # else
  2930. #  include <time.h>
  2931. # endif
  2932. #endif
  2933.  
  2934. static time_t time_t_max;
  2935.  
  2936. /* Values we'll use to set the TZ environment variable.  */
  2937. static const char *const tz_strings[] = {
  2938.   NULL, "GMT0", "JST-9", "EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  2939. };
  2940. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  2941.  
  2942. static void
  2943. mktime_test (now)
  2944.      time_t now;
  2945. {
  2946.   if (mktime (localtime (&now)) != now)
  2947.     exit (1);
  2948.   now = time_t_max - now;
  2949.   if (mktime (localtime (&now)) != now)
  2950.     exit (1);
  2951. }
  2952.  
  2953. int
  2954. main ()
  2955. {
  2956.   time_t t, delta;
  2957.   int i;
  2958.  
  2959.   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  2960.     continue;
  2961.   time_t_max--;
  2962.   delta = time_t_max / 997; /* a suitable prime number */
  2963.   for (i = 0; i < N_STRINGS; i++)
  2964.     {
  2965.       if (tz_strings[i])
  2966.     putenv (tz_strings[i]);
  2967.  
  2968.       for (t = 0; t <= time_t_max - delta; t += delta)
  2969.     mktime_test (t);
  2970.       mktime_test ((time_t) 60 * 60);
  2971.       mktime_test ((time_t) 60 * 60 * 24);
  2972.     }
  2973.   exit (0);
  2974. }
  2975.           
  2976. EOF
  2977. if { (eval echo configure:2978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  2978. then
  2979.            am_cv_func_working_mktime=yes
  2980. else
  2981.   echo "configure: failed program was:" >&5
  2982.   cat conftest.$ac_ext >&5
  2983.   rm -fr conftest*
  2984.   am_cv_func_working_mktime=no
  2985. fi
  2986. rm -fr conftest*
  2987. fi
  2988.  
  2989.   
  2990. fi
  2991.  
  2992. echo "$ac_t""$am_cv_func_working_mktime" 1>&6
  2993.   if test $am_cv_func_working_mktime = no; then
  2994.     LIBOBJS="$LIBOBJS mktime.o"
  2995.   fi
  2996.  
  2997.  if test $am_cv_func_working_mktime = no; then
  2998.    cat >> confdefs.h <<EOF
  2999. #define mktime rpl_mktime
  3000. EOF
  3001.  
  3002.  fi
  3003.  
  3004.    for ac_hdr in sys/time.h
  3005. do
  3006. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  3007. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  3008. echo "configure:3009: checking for $ac_hdr" >&5
  3009. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3010.   echo $ac_n "(cached) $ac_c" 1>&6
  3011. else
  3012.   cat > conftest.$ac_ext <<EOF
  3013. #line 3014 "configure"
  3014. #include "confdefs.h"
  3015. #include <$ac_hdr>
  3016. EOF
  3017. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3018. { (eval echo configure:3019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3019. ac_err=`grep -v '^ *+' conftest.out`
  3020. if test -z "$ac_err"; then
  3021.   rm -rf conftest*
  3022.   eval "ac_cv_header_$ac_safe=yes"
  3023. else
  3024.   echo "$ac_err" >&5
  3025.   echo "configure: failed program was:" >&5
  3026.   cat conftest.$ac_ext >&5
  3027.   rm -rf conftest*
  3028.   eval "ac_cv_header_$ac_safe=no"
  3029. fi
  3030. rm -f conftest*
  3031. fi
  3032. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3033.   echo "$ac_t""yes" 1>&6
  3034.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  3035.   cat >> confdefs.h <<EOF
  3036. #define $ac_tr_hdr 1
  3037. EOF
  3038.  
  3039. else
  3040.   echo "$ac_t""no" 1>&6
  3041. fi
  3042. done
  3043.  
  3044.  echo $ac_n "checking for working GNU strftime""... $ac_c" 1>&6
  3045. echo "configure:3046: checking for working GNU strftime" >&5
  3046. if eval "test \"`echo '$''{'jm_cv_func_working_gnu_strftime'+set}'`\" = set"; then
  3047.   echo $ac_n "(cached) $ac_c" 1>&6
  3048. else
  3049.   if test "$cross_compiling" = yes; then
  3050.            jm_cv_func_working_gnu_strftime=no
  3051. else
  3052.   cat > conftest.$ac_ext <<EOF
  3053. #line 3054 "configure"
  3054. #include "confdefs.h"
  3055.  /* Ulrich Drepper provided parts of the test program.  */
  3056. #if STDC_HEADERS
  3057. # include <stdlib.h>
  3058. #endif
  3059.  
  3060. #if TIME_WITH_SYS_TIME
  3061. # include <sys/time.h>
  3062. # include <time.h>
  3063. #else
  3064. # if HAVE_SYS_TIME_H
  3065. #  include <sys/time.h>
  3066. # else
  3067. #  include <time.h>
  3068. # endif
  3069. #endif
  3070.  
  3071. static int
  3072. compare (const char *fmt, const struct tm *tm, const char *expected)
  3073. {
  3074.   char buf[99];
  3075.   strftime (buf, 99, fmt, tm);
  3076.   if (strcmp (buf, expected))
  3077.     {
  3078. #ifdef SHOW_FAILURES
  3079.       printf ("fmt: \"%s\", expected \"%s\", got \"%s\"\n",
  3080.           fmt, expected, buf);
  3081. #endif
  3082.       return 1;
  3083.     }
  3084.   return 0;
  3085. }
  3086.  
  3087. int
  3088. main ()
  3089. {
  3090.   int n_fail = 0;
  3091.   struct tm *tm;
  3092.   time_t t = 738367; /* Fri Jan  9 13:06:07 1970 */
  3093.   tm = gmtime (&t);
  3094.  
  3095.   /* This is necessary to make strftime give consistent zone strings and
  3096.      e.g., seconds since the epoch (%s).  */
  3097.   putenv ("TZ=GMT0");
  3098.  
  3099. #undef CMP
  3100. #define CMP(Fmt, Expected) n_fail += compare ((Fmt), tm, (Expected))
  3101.  
  3102.   CMP ("%-m", "1");        /* GNU */
  3103.   CMP ("%A", "Friday");
  3104.   CMP ("%^A", "FRIDAY");    /* The ^ is a GNU extension.  */
  3105.   CMP ("%B", "January");
  3106.   CMP ("%^B", "JANUARY");
  3107.   CMP ("%C", "19");        /* POSIX.2 */
  3108.   CMP ("%D", "01/09/70");    /* POSIX.2 */
  3109.   CMP ("%G", "1970");        /* GNU */
  3110.   CMP ("%H", "13");
  3111.   CMP ("%I", "01");
  3112.   CMP ("%M", "06");
  3113.   CMP ("%M", "06");
  3114.   CMP ("%R", "13:06");        /* POSIX.2 */
  3115.   CMP ("%S", "07");
  3116.   CMP ("%T", "13:06:07");    /* POSIX.2 */
  3117.   CMP ("%U", "01");
  3118.   CMP ("%V", "02");
  3119.   CMP ("%W", "01");
  3120.   CMP ("%X", "13:06:07");
  3121.   CMP ("%Y", "1970");
  3122.   CMP ("%Z", "GMT");
  3123.   CMP ("%_m", " 1");        /* GNU */
  3124.   CMP ("%a", "Fri");
  3125.   CMP ("%^a", "FRI");
  3126.   CMP ("%b", "Jan");
  3127.   CMP ("%^b", "JAN");
  3128.   CMP ("%c", "Fri Jan  9 13:06:07 1970");
  3129.   CMP ("%^c", "FRI JAN  9 13:06:07 1970");
  3130.   CMP ("%d", "09");
  3131.   CMP ("%e", " 9");        /* POSIX.2 */
  3132.   CMP ("%g", "70");        /* GNU */
  3133.   CMP ("%h", "Jan");        /* POSIX.2 */
  3134.   CMP ("%^h", "JAN");
  3135.   CMP ("%j", "009");
  3136.   CMP ("%k", "13");        /* GNU */
  3137.   CMP ("%l", " 1");        /* GNU */
  3138.   CMP ("%m", "01");
  3139.   CMP ("%n", "\n");        /* POSIX.2 */
  3140.   CMP ("%p", "PM");
  3141.   CMP ("%r", "01:06:07 PM");    /* POSIX.2 */
  3142.   CMP ("%s", "738367");        /* GNU */
  3143.   CMP ("%t", "\t");        /* POSIX.2 */
  3144.   CMP ("%u", "5");        /* POSIX.2 */
  3145.   CMP ("%w", "5");
  3146.   CMP ("%x", "01/09/70");
  3147.   CMP ("%y", "70");
  3148.   CMP ("%z", "+0000");        /* GNU */
  3149.  
  3150.   exit (n_fail ? 1 : 0);
  3151. }
  3152.           
  3153. EOF
  3154. if { (eval echo configure:3155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  3155. then
  3156.            jm_cv_func_working_gnu_strftime=yes
  3157. else
  3158.   echo "configure: failed program was:" >&5
  3159.   cat conftest.$ac_ext >&5
  3160.   rm -fr conftest*
  3161.   jm_cv_func_working_gnu_strftime=no
  3162. fi
  3163. rm -fr conftest*
  3164. fi
  3165.  
  3166.   
  3167. fi
  3168.  
  3169. echo "$ac_t""$jm_cv_func_working_gnu_strftime" 1>&6
  3170.   if test $jm_cv_func_working_gnu_strftime = no; then
  3171.     LIBOBJS="$LIBOBJS strftime.o"
  3172.     cat >> confdefs.h <<EOF
  3173. #define strftime gnu_strftime
  3174. EOF
  3175.  
  3176.   fi
  3177.  
  3178.  
  3179.   am_getline_needs_run_time_check=no
  3180.   am_cv_func_working_getline=yes
  3181.   echo $ac_n "checking for getline""... $ac_c" 1>&6
  3182. echo "configure:3183: checking for getline" >&5
  3183. if eval "test \"`echo '$''{'ac_cv_func_getline'+set}'`\" = set"; then
  3184.   echo $ac_n "(cached) $ac_c" 1>&6
  3185. else
  3186.   cat > conftest.$ac_ext <<EOF
  3187. #line 3188 "configure"
  3188. #include "confdefs.h"
  3189. /* System header to define __stub macros and hopefully few prototypes,
  3190.     which can conflict with char getline(); below.  */
  3191. #include <assert.h>
  3192. /* Override any gcc2 internal prototype to avoid an error.  */
  3193. /* We use char because int might match the return type of a gcc2
  3194.     builtin and then its argument prototype would still apply.  */
  3195. char getline();
  3196.  
  3197. int main() {
  3198.  
  3199. /* The GNU C library defines this for functions which it implements
  3200.     to always fail with ENOSYS.  Some functions are actually named
  3201.     something starting with __ and the normal name is an alias.  */
  3202. #if defined (__stub_getline) || defined (__stub___getline)
  3203. choke me
  3204. #else
  3205. getline();
  3206. #endif
  3207.  
  3208. ; return 0; }
  3209. EOF
  3210. if { (eval echo configure:3211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3211.   rm -rf conftest*
  3212.   eval "ac_cv_func_getline=yes"
  3213. else
  3214.   echo "configure: failed program was:" >&5
  3215.   cat conftest.$ac_ext >&5
  3216.   rm -rf conftest*
  3217.   eval "ac_cv_func_getline=no"
  3218. fi
  3219. rm -f conftest*
  3220. fi
  3221.  
  3222. if eval "test \"`echo '$ac_cv_func_'getline`\" = yes"; then
  3223.   echo "$ac_t""yes" 1>&6
  3224.           am_getline_needs_run_time_check=yes
  3225. else
  3226.   echo "$ac_t""no" 1>&6
  3227. am_cv_func_working_getline=no
  3228. fi
  3229.  
  3230.   if test $am_getline_needs_run_time_check = yes; then
  3231.     echo $ac_n "checking for working getline function""... $ac_c" 1>&6
  3232. echo "configure:3233: checking for working getline function" >&5
  3233. if eval "test \"`echo '$''{'am_cv_func_working_getline'+set}'`\" = set"; then
  3234.   echo $ac_n "(cached) $ac_c" 1>&6
  3235. else
  3236.   echo fooN |tr -d '\012'|tr N '\012' > conftestdata
  3237.     if test "$cross_compiling" = yes; then
  3238.   am_cv_func_working_getline=no     
  3239. else
  3240.   cat > conftest.$ac_ext <<EOF
  3241. #line 3242 "configure"
  3242. #include "confdefs.h"
  3243.  
  3244. #    include <stdio.h>
  3245. #    include <sys/types.h>
  3246. #    if HAVE_STRING_H
  3247. #     include <string.h>
  3248. #    endif
  3249.     int main ()
  3250.     { /* Based on a test program from Karl Heuer.  */
  3251.       char *line = NULL;
  3252.       size_t siz = 0;
  3253.       int len;
  3254.       FILE *in = fopen ("./conftestdata", "r");
  3255.       if (!in)
  3256.     return 1;
  3257.       len = getline (&line, &siz, in);
  3258.       exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
  3259.     }
  3260.     
  3261. EOF
  3262. if { (eval echo configure:3263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  3263. then
  3264.   am_cv_func_working_getline=yes     
  3265. else
  3266.   echo "configure: failed program was:" >&5
  3267.   cat conftest.$ac_ext >&5
  3268.   rm -fr conftest*
  3269.   am_cv_func_working_getline=no     
  3270. fi
  3271. rm -fr conftest*
  3272. fi
  3273.  
  3274. fi
  3275.  
  3276. echo "$ac_t""$am_cv_func_working_getline" 1>&6
  3277.   fi
  3278.  
  3279.   if test $am_cv_func_working_getline = no; then
  3280.     LIBOBJS="$LIBOBJS getline.o"
  3281.       fi
  3282.  
  3283. if test $am_cv_func_working_getline != yes; then
  3284.   for ac_func in getdelim
  3285. do
  3286. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3287. echo "configure:3288: checking for $ac_func" >&5
  3288. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3289.   echo $ac_n "(cached) $ac_c" 1>&6
  3290. else
  3291.   cat > conftest.$ac_ext <<EOF
  3292. #line 3293 "configure"
  3293. #include "confdefs.h"
  3294. /* System header to define __stub macros and hopefully few prototypes,
  3295.     which can conflict with char $ac_func(); below.  */
  3296. #include <assert.h>
  3297. /* Override any gcc2 internal prototype to avoid an error.  */
  3298. /* We use char because int might match the return type of a gcc2
  3299.     builtin and then its argument prototype would still apply.  */
  3300. char $ac_func();
  3301.  
  3302. int main() {
  3303.  
  3304. /* The GNU C library defines this for functions which it implements
  3305.     to always fail with ENOSYS.  Some functions are actually named
  3306.     something starting with __ and the normal name is an alias.  */
  3307. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3308. choke me
  3309. #else
  3310. $ac_func();
  3311. #endif
  3312.  
  3313. ; return 0; }
  3314. EOF
  3315. if { (eval echo configure:3316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3316.   rm -rf conftest*
  3317.   eval "ac_cv_func_$ac_func=yes"
  3318. else
  3319.   echo "configure: failed program was:" >&5
  3320.   cat conftest.$ac_ext >&5
  3321.   rm -rf conftest*
  3322.   eval "ac_cv_func_$ac_func=no"
  3323. fi
  3324. rm -f conftest*
  3325. fi
  3326.  
  3327. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3328.   echo "$ac_t""yes" 1>&6
  3329.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3330.   cat >> confdefs.h <<EOF
  3331. #define $ac_tr_func 1
  3332. EOF
  3333.  
  3334. else
  3335.   echo "$ac_t""no" 1>&6
  3336. fi
  3337. done
  3338.  
  3339. fi
  3340.  
  3341. for ac_func in bcopy endgrent endpwent fchdir ftime ftruncate \
  3342.     getcwd getmntinfo gettimeofday isascii lchown \
  3343.     listmntent memcpy mkfifo strchr strerror strrchr
  3344. do
  3345. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3346. echo "configure:3347: checking for $ac_func" >&5
  3347. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3348.   echo $ac_n "(cached) $ac_c" 1>&6
  3349. else
  3350.   cat > conftest.$ac_ext <<EOF
  3351. #line 3352 "configure"
  3352. #include "confdefs.h"
  3353. /* System header to define __stub macros and hopefully few prototypes,
  3354.     which can conflict with char $ac_func(); below.  */
  3355. #include <assert.h>
  3356. /* Override any gcc2 internal prototype to avoid an error.  */
  3357. /* We use char because int might match the return type of a gcc2
  3358.     builtin and then its argument prototype would still apply.  */
  3359. char $ac_func();
  3360.  
  3361. int main() {
  3362.  
  3363. /* The GNU C library defines this for functions which it implements
  3364.     to always fail with ENOSYS.  Some functions are actually named
  3365.     something starting with __ and the normal name is an alias.  */
  3366. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3367. choke me
  3368. #else
  3369. $ac_func();
  3370. #endif
  3371.  
  3372. ; return 0; }
  3373. EOF
  3374. if { (eval echo configure:3375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3375.   rm -rf conftest*
  3376.   eval "ac_cv_func_$ac_func=yes"
  3377. else
  3378.   echo "configure: failed program was:" >&5
  3379.   cat conftest.$ac_ext >&5
  3380.   rm -rf conftest*
  3381.   eval "ac_cv_func_$ac_func=no"
  3382. fi
  3383. rm -f conftest*
  3384. fi
  3385.  
  3386. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3387.   echo "$ac_t""yes" 1>&6
  3388.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3389.   cat >> confdefs.h <<EOF
  3390. #define $ac_tr_func 1
  3391. EOF
  3392.  
  3393. else
  3394.   echo "$ac_t""no" 1>&6
  3395. fi
  3396. done
  3397.  
  3398.  
  3399. echo $ac_n "checking for error_at_line""... $ac_c" 1>&6
  3400. echo "configure:3401: checking for error_at_line" >&5
  3401. if eval "test \"`echo '$''{'am_cv_lib_error_at_line'+set}'`\" = set"; then
  3402.   echo $ac_n "(cached) $ac_c" 1>&6
  3403. else
  3404.   cat > conftest.$ac_ext <<EOF
  3405. #line 3406 "configure"
  3406. #include "confdefs.h"
  3407.  
  3408. int main() {
  3409. error_at_line(0, 0, "", 0, "");
  3410. ; return 0; }
  3411. EOF
  3412. if { (eval echo configure:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3413.   rm -rf conftest*
  3414.   am_cv_lib_error_at_line=yes
  3415. else
  3416.   echo "configure: failed program was:" >&5
  3417.   cat conftest.$ac_ext >&5
  3418.   rm -rf conftest*
  3419.   am_cv_lib_error_at_line=no
  3420. fi
  3421. rm -f conftest*
  3422. fi
  3423.  
  3424. echo "$ac_t""$am_cv_lib_error_at_line" 1>&6
  3425.  if test $am_cv_lib_error_at_line = no; then
  3426.    LIBOBJS="$LIBOBJS error.o"
  3427.  fi
  3428.  
  3429. echo $ac_n "checking for obstacks""... $ac_c" 1>&6
  3430. echo "configure:3431: checking for obstacks" >&5
  3431. if eval "test \"`echo '$''{'am_cv_func_obstack'+set}'`\" = set"; then
  3432.   echo $ac_n "(cached) $ac_c" 1>&6
  3433. else
  3434.   cat > conftest.$ac_ext <<EOF
  3435. #line 3436 "configure"
  3436. #include "confdefs.h"
  3437. #include "obstack.h"
  3438. int main() {
  3439. struct obstack *mem;obstack_free(mem,(char *) 0)
  3440. ; return 0; }
  3441. EOF
  3442. if { (eval echo configure:3443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3443.   rm -rf conftest*
  3444.   am_cv_func_obstack=yes
  3445. else
  3446.   echo "configure: failed program was:" >&5
  3447.   cat conftest.$ac_ext >&5
  3448.   rm -rf conftest*
  3449.   am_cv_func_obstack=no
  3450. fi
  3451. rm -f conftest*
  3452. fi
  3453.  
  3454. echo "$ac_t""$am_cv_func_obstack" 1>&6
  3455.  if test $am_cv_func_obstack = yes; then
  3456.    cat >> confdefs.h <<\EOF
  3457. #define HAVE_OBSTACK 1
  3458. EOF
  3459.  
  3460.  else
  3461.    LIBOBJS="$LIBOBJS obstack.o"
  3462.  fi
  3463.  
  3464. echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
  3465. echo "configure:3466: checking POSIX termios" >&5
  3466. if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
  3467.   echo $ac_n "(cached) $ac_c" 1>&6
  3468. else
  3469.   cat > conftest.$ac_ext <<EOF
  3470. #line 3471 "configure"
  3471. #include "confdefs.h"
  3472. #include <sys/types.h>
  3473. #include <unistd.h>
  3474. #include <termios.h>
  3475. int main() {
  3476. /* SunOS 4.0.3 has termios.h but not the library calls.  */
  3477.    tcgetattr(0, 0);
  3478. ; return 0; }
  3479. EOF
  3480. if { (eval echo configure:3481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3481.   rm -rf conftest*
  3482.   am_cv_sys_posix_termios=yes
  3483. else
  3484.   echo "configure: failed program was:" >&5
  3485.   cat conftest.$ac_ext >&5
  3486.   rm -rf conftest*
  3487.   am_cv_sys_posix_termios=no
  3488. fi
  3489. rm -f conftest*
  3490. fi
  3491.  
  3492. echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
  3493.  
  3494.  
  3495.  echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
  3496. echo "configure:3497: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
  3497. if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
  3498.   echo $ac_n "(cached) $ac_c" 1>&6
  3499. else
  3500.   am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
  3501.  
  3502.   gwinsz_in_termios_h=no
  3503.   if test $am_cv_sys_posix_termios = yes; then
  3504.     cat > conftest.$ac_ext <<EOF
  3505. #line 3506 "configure"
  3506. #include "confdefs.h"
  3507. #include <sys/types.h>
  3508. #     include <termios.h>
  3509. #     ifdef TIOCGWINSZ
  3510.         yes
  3511. #     endif
  3512.     
  3513. EOF
  3514. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3515.   egrep "yes" >/dev/null 2>&1; then
  3516.   rm -rf conftest*
  3517.   gwinsz_in_termios_h=yes
  3518. fi
  3519. rm -f conftest*
  3520.  
  3521.   fi
  3522.  
  3523.   if test $gwinsz_in_termios_h = no; then
  3524.     cat > conftest.$ac_ext <<EOF
  3525. #line 3526 "configure"
  3526. #include "confdefs.h"
  3527. #include <sys/types.h>
  3528. #     include <sys/ioctl.h>
  3529. #     ifdef TIOCGWINSZ
  3530.         yes
  3531. #     endif
  3532.     
  3533. EOF
  3534. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3535.   egrep "yes" >/dev/null 2>&1; then
  3536.   rm -rf conftest*
  3537.   am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
  3538. fi
  3539. rm -f conftest*
  3540.  
  3541.   fi
  3542.   
  3543. fi
  3544.  
  3545. echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
  3546.   if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
  3547.     cat >> confdefs.h <<\EOF
  3548. #define GWINSZ_IN_SYS_IOCTL 1
  3549. EOF
  3550.  
  3551.   fi
  3552.  
  3553.  
  3554. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  3555. echo "configure:3556: checking for vprintf" >&5
  3556. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  3557.   echo $ac_n "(cached) $ac_c" 1>&6
  3558. else
  3559.   cat > conftest.$ac_ext <<EOF
  3560. #line 3561 "configure"
  3561. #include "confdefs.h"
  3562. /* System header to define __stub macros and hopefully few prototypes,
  3563.     which can conflict with char vprintf(); below.  */
  3564. #include <assert.h>
  3565. /* Override any gcc2 internal prototype to avoid an error.  */
  3566. /* We use char because int might match the return type of a gcc2
  3567.     builtin and then its argument prototype would still apply.  */
  3568. char vprintf();
  3569.  
  3570. int main() {
  3571.  
  3572. /* The GNU C library defines this for functions which it implements
  3573.     to always fail with ENOSYS.  Some functions are actually named
  3574.     something starting with __ and the normal name is an alias.  */
  3575. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  3576. choke me
  3577. #else
  3578. vprintf();
  3579. #endif
  3580.  
  3581. ; return 0; }
  3582. EOF
  3583. if { (eval echo configure:3584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3584.   rm -rf conftest*
  3585.   eval "ac_cv_func_vprintf=yes"
  3586. else
  3587.   echo "configure: failed program was:" >&5
  3588.   cat conftest.$ac_ext >&5
  3589.   rm -rf conftest*
  3590.   eval "ac_cv_func_vprintf=no"
  3591. fi
  3592. rm -f conftest*
  3593. fi
  3594.  
  3595. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  3596.   echo "$ac_t""yes" 1>&6
  3597.   cat >> confdefs.h <<\EOF
  3598. #define HAVE_VPRINTF 1
  3599. EOF
  3600.  
  3601. else
  3602.   echo "$ac_t""no" 1>&6
  3603. fi
  3604.  
  3605. if test "$ac_cv_func_vprintf" != yes; then
  3606. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  3607. echo "configure:3608: checking for _doprnt" >&5
  3608. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  3609.   echo $ac_n "(cached) $ac_c" 1>&6
  3610. else
  3611.   cat > conftest.$ac_ext <<EOF
  3612. #line 3613 "configure"
  3613. #include "confdefs.h"
  3614. /* System header to define __stub macros and hopefully few prototypes,
  3615.     which can conflict with char _doprnt(); below.  */
  3616. #include <assert.h>
  3617. /* Override any gcc2 internal prototype to avoid an error.  */
  3618. /* We use char because int might match the return type of a gcc2
  3619.     builtin and then its argument prototype would still apply.  */
  3620. char _doprnt();
  3621.  
  3622. int main() {
  3623.  
  3624. /* The GNU C library defines this for functions which it implements
  3625.     to always fail with ENOSYS.  Some functions are actually named
  3626.     something starting with __ and the normal name is an alias.  */
  3627. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  3628. choke me
  3629. #else
  3630. _doprnt();
  3631. #endif
  3632.  
  3633. ; return 0; }
  3634. EOF
  3635. if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3636.   rm -rf conftest*
  3637.   eval "ac_cv_func__doprnt=yes"
  3638. else
  3639.   echo "configure: failed program was:" >&5
  3640.   cat conftest.$ac_ext >&5
  3641.   rm -rf conftest*
  3642.   eval "ac_cv_func__doprnt=no"
  3643. fi
  3644. rm -f conftest*
  3645. fi
  3646.  
  3647. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  3648.   echo "$ac_t""yes" 1>&6
  3649.   cat >> confdefs.h <<\EOF
  3650. #define HAVE_DOPRNT 1
  3651. EOF
  3652.  
  3653. else
  3654.   echo "$ac_t""no" 1>&6
  3655. fi
  3656.  
  3657. fi
  3658.  
  3659. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  3660. # for constant arguments.  Useless!
  3661. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  3662. echo "configure:3663: checking for working alloca.h" >&5
  3663. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  3664.   echo $ac_n "(cached) $ac_c" 1>&6
  3665. else
  3666.   cat > conftest.$ac_ext <<EOF
  3667. #line 3668 "configure"
  3668. #include "confdefs.h"
  3669. #include <alloca.h>
  3670. int main() {
  3671. char *p = alloca(2 * sizeof(int));
  3672. ; return 0; }
  3673. EOF
  3674. if { (eval echo configure:3675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3675.   rm -rf conftest*
  3676.   ac_cv_header_alloca_h=yes
  3677. else
  3678.   echo "configure: failed program was:" >&5
  3679.   cat conftest.$ac_ext >&5
  3680.   rm -rf conftest*
  3681.   ac_cv_header_alloca_h=no
  3682. fi
  3683. rm -f conftest*
  3684. fi
  3685.  
  3686. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  3687. if test $ac_cv_header_alloca_h = yes; then
  3688.   cat >> confdefs.h <<\EOF
  3689. #define HAVE_ALLOCA_H 1
  3690. EOF
  3691.  
  3692. fi
  3693.  
  3694. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  3695. echo "configure:3696: checking for alloca" >&5
  3696. if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
  3697.   echo $ac_n "(cached) $ac_c" 1>&6
  3698. else
  3699.   cat > conftest.$ac_ext <<EOF
  3700. #line 3701 "configure"
  3701. #include "confdefs.h"
  3702.  
  3703. #ifdef __GNUC__
  3704. # define alloca __builtin_alloca
  3705. #else
  3706. # if HAVE_ALLOCA_H
  3707. #  include <alloca.h>
  3708. # else
  3709. #  ifdef _AIX
  3710.  #pragma alloca
  3711. #  else
  3712. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  3713. char *alloca ();
  3714. #   endif
  3715. #  endif
  3716. # endif
  3717. #endif
  3718.  
  3719. int main() {
  3720. char *p = (char *) alloca(1);
  3721. ; return 0; }
  3722. EOF
  3723. if { (eval echo configure:3724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3724.   rm -rf conftest*
  3725.   ac_cv_func_alloca_works=yes
  3726. else
  3727.   echo "configure: failed program was:" >&5
  3728.   cat conftest.$ac_ext >&5
  3729.   rm -rf conftest*
  3730.   ac_cv_func_alloca_works=no
  3731. fi
  3732. rm -f conftest*
  3733. fi
  3734.  
  3735. echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
  3736. if test $ac_cv_func_alloca_works = yes; then
  3737.   cat >> confdefs.h <<\EOF
  3738. #define HAVE_ALLOCA 1
  3739. EOF
  3740.  
  3741. fi
  3742.  
  3743. if test $ac_cv_func_alloca_works = no; then
  3744.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  3745.   # that cause trouble.  Some versions do not even contain alloca or
  3746.   # contain a buggy version.  If you still want to use their alloca,
  3747.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  3748.   ALLOCA=alloca.o
  3749.   cat >> confdefs.h <<\EOF
  3750. #define C_ALLOCA 1
  3751. EOF
  3752.  
  3753.  
  3754. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  3755. echo "configure:3756: checking whether alloca needs Cray hooks" >&5
  3756. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  3757.   echo $ac_n "(cached) $ac_c" 1>&6
  3758. else
  3759.   cat > conftest.$ac_ext <<EOF
  3760. #line 3761 "configure"
  3761. #include "confdefs.h"
  3762. #if defined(CRAY) && ! defined(CRAY2)
  3763. webecray
  3764. #else
  3765. wenotbecray
  3766. #endif
  3767.  
  3768. EOF
  3769. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3770.   egrep "webecray" >/dev/null 2>&1; then
  3771.   rm -rf conftest*
  3772.   ac_cv_os_cray=yes
  3773. else
  3774.   rm -rf conftest*
  3775.   ac_cv_os_cray=no
  3776. fi
  3777. rm -f conftest*
  3778.  
  3779. fi
  3780.  
  3781. echo "$ac_t""$ac_cv_os_cray" 1>&6
  3782. if test $ac_cv_os_cray = yes; then
  3783. for ac_func in _getb67 GETB67 getb67; do
  3784.   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3785. echo "configure:3786: checking for $ac_func" >&5
  3786. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3787.   echo $ac_n "(cached) $ac_c" 1>&6
  3788. else
  3789.   cat > conftest.$ac_ext <<EOF
  3790. #line 3791 "configure"
  3791. #include "confdefs.h"
  3792. /* System header to define __stub macros and hopefully few prototypes,
  3793.     which can conflict with char $ac_func(); below.  */
  3794. #include <assert.h>
  3795. /* Override any gcc2 internal prototype to avoid an error.  */
  3796. /* We use char because int might match the return type of a gcc2
  3797.     builtin and then its argument prototype would still apply.  */
  3798. char $ac_func();
  3799.  
  3800. int main() {
  3801.  
  3802. /* The GNU C library defines this for functions which it implements
  3803.     to always fail with ENOSYS.  Some functions are actually named
  3804.     something starting with __ and the normal name is an alias.  */
  3805. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3806. choke me
  3807. #else
  3808. $ac_func();
  3809. #endif
  3810.  
  3811. ; return 0; }
  3812. EOF
  3813. if { (eval echo configure:3814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3814.   rm -rf conftest*
  3815.   eval "ac_cv_func_$ac_func=yes"
  3816. else
  3817.   echo "configure: failed program was:" >&5
  3818.   cat conftest.$ac_ext >&5
  3819.   rm -rf conftest*
  3820.   eval "ac_cv_func_$ac_func=no"
  3821. fi
  3822. rm -f conftest*
  3823. fi
  3824.  
  3825. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3826.   echo "$ac_t""yes" 1>&6
  3827.   cat >> confdefs.h <<EOF
  3828. #define CRAY_STACKSEG_END $ac_func
  3829. EOF
  3830.  
  3831.   break
  3832. else
  3833.   echo "$ac_t""no" 1>&6
  3834. fi
  3835.  
  3836. done
  3837. fi
  3838.  
  3839. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  3840. echo "configure:3841: checking stack direction for C alloca" >&5
  3841. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  3842.   echo $ac_n "(cached) $ac_c" 1>&6
  3843. else
  3844.   if test "$cross_compiling" = yes; then
  3845.   ac_cv_c_stack_direction=0
  3846. else
  3847.   cat > conftest.$ac_ext <<EOF
  3848. #line 3849 "configure"
  3849. #include "confdefs.h"
  3850. find_stack_direction ()
  3851. {
  3852.   static char *addr = 0;
  3853.   auto char dummy;
  3854.   if (addr == 0)
  3855.     {
  3856.       addr = &dummy;
  3857.       return find_stack_direction ();
  3858.     }
  3859.   else
  3860.     return (&dummy > addr) ? 1 : -1;
  3861. }
  3862. main ()
  3863. {
  3864.   exit (find_stack_direction() < 0);
  3865. }
  3866. EOF
  3867. if { (eval echo configure:3868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  3868. then
  3869.   ac_cv_c_stack_direction=1
  3870. else
  3871.   echo "configure: failed program was:" >&5
  3872.   cat conftest.$ac_ext >&5
  3873.   rm -fr conftest*
  3874.   ac_cv_c_stack_direction=-1
  3875. fi
  3876. rm -fr conftest*
  3877. fi
  3878.  
  3879. fi
  3880.  
  3881. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  3882. cat >> confdefs.h <<EOF
  3883. #define STACK_DIRECTION $ac_cv_c_stack_direction
  3884. EOF
  3885.  
  3886. fi
  3887.  
  3888. echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6
  3889. echo "configure:3890: checking whether utime accepts a null argument" >&5
  3890. if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then
  3891.   echo $ac_n "(cached) $ac_c" 1>&6
  3892. else
  3893.   rm -f conftestdata; > conftestdata
  3894. # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
  3895. if test "$cross_compiling" = yes; then
  3896.   ac_cv_func_utime_null=no
  3897. else
  3898.   cat > conftest.$ac_ext <<EOF
  3899. #line 3900 "configure"
  3900. #include "confdefs.h"
  3901. #include <sys/types.h>
  3902. #include <sys/stat.h>
  3903. main() {
  3904. struct stat s, t;
  3905. exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
  3906. && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
  3907. && t.st_mtime - s.st_mtime < 120));
  3908. }
  3909. EOF
  3910. if { (eval echo configure:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  3911. then
  3912.   ac_cv_func_utime_null=yes
  3913. else
  3914.   echo "configure: failed program was:" >&5
  3915.   cat conftest.$ac_ext >&5
  3916.   rm -fr conftest*
  3917.   ac_cv_func_utime_null=no
  3918. fi
  3919. rm -fr conftest*
  3920. fi
  3921.  
  3922. rm -f core core.* *.core
  3923. fi
  3924.  
  3925. echo "$ac_t""$ac_cv_func_utime_null" 1>&6
  3926. if test $ac_cv_func_utime_null = yes; then
  3927.   cat >> confdefs.h <<\EOF
  3928. #define HAVE_UTIME_NULL 1
  3929. EOF
  3930.  
  3931. fi
  3932.  
  3933.  
  3934. echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
  3935. echo "configure:3936: checking for struct utimbuf" >&5
  3936. if eval "test \"`echo '$''{'fu_cv_sys_struct_utimbuf'+set}'`\" = set"; then
  3937.   echo $ac_n "(cached) $ac_c" 1>&6
  3938. else
  3939.   cat > conftest.$ac_ext <<EOF
  3940. #line 3941 "configure"
  3941. #include "confdefs.h"
  3942. #ifdef TIME_WITH_SYS_TIME
  3943. #include <sys/time.h>
  3944. #include <time.h>
  3945. #else
  3946. #ifdef HAVE_SYS_TIME_H
  3947. #include <sys/time.h>
  3948. #else
  3949. #include <time.h>
  3950. #endif
  3951. #endif
  3952. #ifdef HAVE_UTIME_H
  3953. #include <utime.h>
  3954. #endif
  3955. int main() {
  3956. static struct utimbuf x; x.actime = x.modtime;
  3957. ; return 0; }
  3958. EOF
  3959. if { (eval echo configure:3960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3960.   rm -rf conftest*
  3961.   fu_cv_sys_struct_utimbuf=yes
  3962. else
  3963.   echo "configure: failed program was:" >&5
  3964.   cat conftest.$ac_ext >&5
  3965.   rm -rf conftest*
  3966.   fu_cv_sys_struct_utimbuf=no
  3967. fi
  3968. rm -f conftest*
  3969. fi
  3970.  
  3971. echo "$ac_t""$fu_cv_sys_struct_utimbuf" 1>&6
  3972. if test $fu_cv_sys_struct_utimbuf = yes; then
  3973.    cat >> confdefs.h <<\EOF
  3974. #define HAVE_STRUCT_UTIMBUF 1
  3975. EOF
  3976.  
  3977. fi
  3978.  
  3979. echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
  3980. echo "configure:3981: checking for working fnmatch" >&5
  3981. if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then
  3982.   echo $ac_n "(cached) $ac_c" 1>&6
  3983. else
  3984.   # Some versions of Solaris or SCO have a broken fnmatch function.
  3985. # So we run a test program.  If we are cross-compiling, take no chance.
  3986. # Thanks to John Oleynick and Franc,ois Pinard for this test.
  3987. if test "$cross_compiling" = yes; then
  3988.   ac_cv_func_fnmatch_works=no
  3989. else
  3990.   cat > conftest.$ac_ext <<EOF
  3991. #line 3992 "configure"
  3992. #include "confdefs.h"
  3993. main() { exit (fnmatch ("a*", "abc", 0) != 0); }
  3994. EOF
  3995. if { (eval echo configure:3996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  3996. then
  3997.   ac_cv_func_fnmatch_works=yes
  3998. else
  3999.   echo "configure: failed program was:" >&5
  4000.   cat conftest.$ac_ext >&5
  4001.   rm -fr conftest*
  4002.   ac_cv_func_fnmatch_works=no
  4003. fi
  4004. rm -fr conftest*
  4005. fi
  4006.  
  4007. fi
  4008.  
  4009. echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6
  4010. if test $ac_cv_func_fnmatch_works = yes; then
  4011.   cat >> confdefs.h <<\EOF
  4012. #define HAVE_FNMATCH 1
  4013. EOF
  4014.  
  4015. fi
  4016.  
  4017. if test $ac_cv_func_fnmatch_works = no; then
  4018.   LIBOBJS="$LIBOBJS fnmatch.o"
  4019.   cat >> confdefs.h <<EOF
  4020. #define fnmatch rpl_fnmatch
  4021. EOF
  4022.  
  4023. fi
  4024.  
  4025. echo $ac_n "checking for d_ino member in directory struct""... $ac_c" 1>&6
  4026. echo "configure:4027: checking for d_ino member in directory struct" >&5
  4027. if eval "test \"`echo '$''{'fu_cv_sys_d_ino_in_dirent'+set}'`\" = set"; then
  4028.   echo $ac_n "(cached) $ac_c" 1>&6
  4029. else
  4030.   cat > conftest.$ac_ext <<EOF
  4031. #line 4032 "configure"
  4032. #include "confdefs.h"
  4033.  
  4034. #include <sys/types.h>
  4035. #ifdef HAVE_DIRENT_H
  4036. # include <dirent.h>
  4037. #else /* not HAVE_DIRENT_H */
  4038. # define dirent direct
  4039. # ifdef HAVE_SYS_NDIR_H
  4040. #  include <sys/ndir.h>
  4041. # endif /* HAVE_SYS_NDIR_H */
  4042. # ifdef HAVE_SYS_DIR_H
  4043. #  include <sys/dir.h>
  4044. # endif /* HAVE_SYS_DIR_H */
  4045. # ifdef HAVE_NDIR_H
  4046. #  include <ndir.h>
  4047. # endif /* HAVE_NDIR_H */
  4048. #endif /* HAVE_DIRENT_H */
  4049.  
  4050. int main() {
  4051. struct dirent dp; dp.d_ino = 0;
  4052. ; return 0; }
  4053. EOF
  4054. if { (eval echo configure:4055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4055.   rm -rf conftest*
  4056.   fu_cv_sys_d_ino_in_dirent=yes
  4057. else
  4058.   echo "configure: failed program was:" >&5
  4059.   cat conftest.$ac_ext >&5
  4060.   rm -rf conftest*
  4061.   fu_cv_sys_d_ino_in_dirent=no
  4062. fi
  4063. rm -f conftest*
  4064. fi
  4065.  
  4066. echo "$ac_t""$fu_cv_sys_d_ino_in_dirent" 1>&6
  4067. if test $fu_cv_sys_d_ino_in_dirent = yes; then
  4068.   cat >> confdefs.h <<\EOF
  4069. #define D_INO_IN_DIRENT 1
  4070. EOF
  4071.  
  4072. fi
  4073.  
  4074. # Determine how to get the list of mounted filesystems.
  4075. list_mounted_fs=
  4076.  
  4077. # If the getmntent function is available but not in the standard library,
  4078. # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
  4079. # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
  4080. echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
  4081. echo "configure:4082: checking for getmntent in -lsun" >&5
  4082. ac_lib_var=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
  4083. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4084.   echo $ac_n "(cached) $ac_c" 1>&6
  4085. else
  4086.   ac_save_LIBS="$LIBS"
  4087. LIBS="-lsun  $LIBS"
  4088. cat > conftest.$ac_ext <<EOF
  4089. #line 4090 "configure"
  4090. #include "confdefs.h"
  4091. /* Override any gcc2 internal prototype to avoid an error.  */
  4092. /* We use char because int might match the return type of a gcc2
  4093.     builtin and then its argument prototype would still apply.  */
  4094. char getmntent();
  4095.  
  4096. int main() {
  4097. getmntent()
  4098. ; return 0; }
  4099. EOF
  4100. if { (eval echo configure:4101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4101.   rm -rf conftest*
  4102.   eval "ac_cv_lib_$ac_lib_var=yes"
  4103. else
  4104.   echo "configure: failed program was:" >&5
  4105.   cat conftest.$ac_ext >&5
  4106.   rm -rf conftest*
  4107.   eval "ac_cv_lib_$ac_lib_var=no"
  4108. fi
  4109. rm -f conftest*
  4110. LIBS="$ac_save_LIBS"
  4111.  
  4112. fi
  4113. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4114.   echo "$ac_t""yes" 1>&6
  4115.   LIBS="-lsun $LIBS"
  4116. else
  4117.   echo "$ac_t""no" 1>&6
  4118. echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
  4119. echo "configure:4120: checking for getmntent in -lseq" >&5
  4120. ac_lib_var=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
  4121. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4122.   echo $ac_n "(cached) $ac_c" 1>&6
  4123. else
  4124.   ac_save_LIBS="$LIBS"
  4125. LIBS="-lseq  $LIBS"
  4126. cat > conftest.$ac_ext <<EOF
  4127. #line 4128 "configure"
  4128. #include "confdefs.h"
  4129. /* Override any gcc2 internal prototype to avoid an error.  */
  4130. /* We use char because int might match the return type of a gcc2
  4131.     builtin and then its argument prototype would still apply.  */
  4132. char getmntent();
  4133.  
  4134. int main() {
  4135. getmntent()
  4136. ; return 0; }
  4137. EOF
  4138. if { (eval echo configure:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4139.   rm -rf conftest*
  4140.   eval "ac_cv_lib_$ac_lib_var=yes"
  4141. else
  4142.   echo "configure: failed program was:" >&5
  4143.   cat conftest.$ac_ext >&5
  4144.   rm -rf conftest*
  4145.   eval "ac_cv_lib_$ac_lib_var=no"
  4146. fi
  4147. rm -f conftest*
  4148. LIBS="$ac_save_LIBS"
  4149.  
  4150. fi
  4151. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4152.   echo "$ac_t""yes" 1>&6
  4153.   LIBS="-lseq $LIBS"
  4154. else
  4155.   echo "$ac_t""no" 1>&6
  4156. echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
  4157. echo "configure:4158: checking for getmntent in -lgen" >&5
  4158. ac_lib_var=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
  4159. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4160.   echo $ac_n "(cached) $ac_c" 1>&6
  4161. else
  4162.   ac_save_LIBS="$LIBS"
  4163. LIBS="-lgen  $LIBS"
  4164. cat > conftest.$ac_ext <<EOF
  4165. #line 4166 "configure"
  4166. #include "confdefs.h"
  4167. /* Override any gcc2 internal prototype to avoid an error.  */
  4168. /* We use char because int might match the return type of a gcc2
  4169.     builtin and then its argument prototype would still apply.  */
  4170. char getmntent();
  4171.  
  4172. int main() {
  4173. getmntent()
  4174. ; return 0; }
  4175. EOF
  4176. if { (eval echo configure:4177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4177.   rm -rf conftest*
  4178.   eval "ac_cv_lib_$ac_lib_var=yes"
  4179. else
  4180.   echo "configure: failed program was:" >&5
  4181.   cat conftest.$ac_ext >&5
  4182.   rm -rf conftest*
  4183.   eval "ac_cv_lib_$ac_lib_var=no"
  4184. fi
  4185. rm -f conftest*
  4186. LIBS="$ac_save_LIBS"
  4187.  
  4188. fi
  4189. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4190.   echo "$ac_t""yes" 1>&6
  4191.   LIBS="-lgen $LIBS"
  4192. else
  4193.   echo "$ac_t""no" 1>&6
  4194. fi
  4195.  
  4196. fi
  4197.  
  4198. fi
  4199.  
  4200. echo $ac_n "checking for getmntent""... $ac_c" 1>&6
  4201. echo "configure:4202: checking for getmntent" >&5
  4202. if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
  4203.   echo $ac_n "(cached) $ac_c" 1>&6
  4204. else
  4205.   cat > conftest.$ac_ext <<EOF
  4206. #line 4207 "configure"
  4207. #include "confdefs.h"
  4208. /* System header to define __stub macros and hopefully few prototypes,
  4209.     which can conflict with char getmntent(); below.  */
  4210. #include <assert.h>
  4211. /* Override any gcc2 internal prototype to avoid an error.  */
  4212. /* We use char because int might match the return type of a gcc2
  4213.     builtin and then its argument prototype would still apply.  */
  4214. char getmntent();
  4215.  
  4216. int main() {
  4217.  
  4218. /* The GNU C library defines this for functions which it implements
  4219.     to always fail with ENOSYS.  Some functions are actually named
  4220.     something starting with __ and the normal name is an alias.  */
  4221. #if defined (__stub_getmntent) || defined (__stub___getmntent)
  4222. choke me
  4223. #else
  4224. getmntent();
  4225. #endif
  4226.  
  4227. ; return 0; }
  4228. EOF
  4229. if { (eval echo configure:4230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4230.   rm -rf conftest*
  4231.   eval "ac_cv_func_getmntent=yes"
  4232. else
  4233.   echo "configure: failed program was:" >&5
  4234.   cat conftest.$ac_ext >&5
  4235.   rm -rf conftest*
  4236.   eval "ac_cv_func_getmntent=no"
  4237. fi
  4238. rm -f conftest*
  4239. fi
  4240.  
  4241. if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
  4242.   echo "$ac_t""yes" 1>&6
  4243.   cat >> confdefs.h <<\EOF
  4244. #define HAVE_GETMNTENT 1
  4245. EOF
  4246.  
  4247. else
  4248.   echo "$ac_t""no" 1>&6
  4249. fi
  4250.  
  4251.  
  4252. # This test must precede the ones for getmntent because Unicos-9 is
  4253. # reported to have the getmntent function, but its support is incompatible
  4254. # with other getmntent implementations.
  4255.  
  4256. # NOTE: Normally, I wouldn't use a check for system type as I've done for
  4257. # `CRAY' below since that goes against the whole autoconf philosophy.  But
  4258. # I think there is too great a chance that some non-Cray system has a
  4259. # function named listmntent to risk the false positive.
  4260.  
  4261. if test -z "$list_mounted_fs"; then
  4262.   # Cray UNICOS 9
  4263.   echo $ac_n "checking for listmntent of Cray/Unicos-9""... $ac_c" 1>&6
  4264. echo "configure:4265: checking for listmntent of Cray/Unicos-9" >&5
  4265.   if eval "test \"`echo '$''{'fu_cv_sys_mounted_cray_listmntent'+set}'`\" = set"; then
  4266.   echo $ac_n "(cached) $ac_c" 1>&6
  4267. else
  4268.   fu_cv_sys_mounted_cray_listmntent=no
  4269.       cat > conftest.$ac_ext <<EOF
  4270. #line 4271 "configure"
  4271. #include "confdefs.h"
  4272. #ifdef _CRAY
  4273. yes
  4274. #endif
  4275.         
  4276. EOF
  4277. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4278.   egrep "yes" >/dev/null 2>&1; then
  4279.   rm -rf conftest*
  4280.   test $ac_cv_func_listmntent = yes \
  4281.         && fu_cv_sys_mounted_cray_listmntent=yes
  4282.       
  4283. fi
  4284. rm -f conftest*
  4285.  
  4286.     
  4287.   
  4288. fi
  4289.  
  4290.   echo "$ac_t""$fu_cv_sys_mounted_cray_listmntent" 1>&6
  4291.   if test $fu_cv_sys_mounted_cray_listmntent = yes; then
  4292.     list_mounted_fs=found
  4293.     cat >> confdefs.h <<\EOF
  4294. #define MOUNTED_LISTMNTENT 1
  4295. EOF
  4296.  
  4297.   fi
  4298. fi
  4299.  
  4300. if test $ac_cv_func_getmntent = yes; then
  4301.  
  4302.   # This system has the getmntent function.
  4303.   # Determine whether it's the one-argument variant or the two-argument one.
  4304.  
  4305.   if test -z "$list_mounted_fs"; then
  4306.     # 4.3BSD, SunOS, HP-UX, Dynix, Irix
  4307.     echo $ac_n "checking for one-argument getmntent function""... $ac_c" 1>&6
  4308. echo "configure:4309: checking for one-argument getmntent function" >&5
  4309.     if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntent1'+set}'`\" = set"; then
  4310.   echo $ac_n "(cached) $ac_c" 1>&6
  4311. else
  4312.   test $ac_cv_header_mntent_h = yes \
  4313.            && fu_cv_sys_mounted_getmntent1=yes \
  4314.            || fu_cv_sys_mounted_getmntent1=no
  4315. fi
  4316.  
  4317.     echo "$ac_t""$fu_cv_sys_mounted_getmntent1" 1>&6
  4318.     if test $fu_cv_sys_mounted_getmntent1 = yes; then
  4319.       list_mounted_fs=found
  4320.       cat >> confdefs.h <<\EOF
  4321. #define MOUNTED_GETMNTENT1 1
  4322. EOF
  4323.  
  4324.     fi
  4325.   fi
  4326.  
  4327.   if test -z "$list_mounted_fs"; then
  4328.     # SVR4
  4329.     echo $ac_n "checking for two-argument getmntent function""... $ac_c" 1>&6
  4330. echo "configure:4331: checking for two-argument getmntent function" >&5
  4331.     if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntent2'+set}'`\" = set"; then
  4332.   echo $ac_n "(cached) $ac_c" 1>&6
  4333. else
  4334.   cat > conftest.$ac_ext <<EOF
  4335. #line 4336 "configure"
  4336. #include "confdefs.h"
  4337. #include <sys/mnttab.h>
  4338. EOF
  4339. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4340.   egrep "getmntent" >/dev/null 2>&1; then
  4341.   rm -rf conftest*
  4342.   fu_cv_sys_mounted_getmntent2=yes
  4343. else
  4344.   rm -rf conftest*
  4345.   fu_cv_sys_mounted_getmntent2=no
  4346. fi
  4347. rm -f conftest*
  4348.  
  4349. fi
  4350.  
  4351.     echo "$ac_t""$fu_cv_sys_mounted_getmntent2" 1>&6
  4352.     if test $fu_cv_sys_mounted_getmntent2 = yes; then
  4353.       list_mounted_fs=found
  4354.       cat >> confdefs.h <<\EOF
  4355. #define MOUNTED_GETMNTENT2 1
  4356. EOF
  4357.  
  4358.     fi
  4359.   fi
  4360.  
  4361.   if test -z "$list_mounted_fs"; then
  4362.     { echo "configure: error: could not determine how to read list of mounted filesystems" 1>&2; exit 1; }
  4363.   fi
  4364.  
  4365. fi
  4366.  
  4367. if test -z "$list_mounted_fs"; then
  4368.   # DEC Alpha running OSF/1.
  4369.   echo $ac_n "checking for getfsstat function""... $ac_c" 1>&6
  4370. echo "configure:4371: checking for getfsstat function" >&5
  4371.   if eval "test \"`echo '$''{'fu_cv_sys_mounted_getsstat'+set}'`\" = set"; then
  4372.   echo $ac_n "(cached) $ac_c" 1>&6
  4373. else
  4374.   cat > conftest.$ac_ext <<EOF
  4375. #line 4376 "configure"
  4376. #include "confdefs.h"
  4377.  
  4378. #include <sys/types.h>
  4379. #include <sys/mount.h>
  4380. #include <sys/fs_types.h>
  4381. int main() {
  4382. struct statfs *stats;
  4383.   int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT); 
  4384. ; return 0; }
  4385. EOF
  4386. if { (eval echo configure:4387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4387.   rm -rf conftest*
  4388.   fu_cv_sys_mounted_getsstat=yes
  4389. else
  4390.   echo "configure: failed program was:" >&5
  4391.   cat conftest.$ac_ext >&5
  4392.   rm -rf conftest*
  4393.   fu_cv_sys_mounted_getsstat=no
  4394. fi
  4395. rm -f conftest*
  4396. fi
  4397.  
  4398.   echo "$ac_t""$fu_cv_sys_mounted_getsstat" 1>&6
  4399.   if test $fu_cv_sys_mounted_getsstat = yes; then
  4400.     list_mounted_fs=found
  4401.     cat >> confdefs.h <<\EOF
  4402. #define MOUNTED_GETFSSTAT 1
  4403. EOF
  4404.  
  4405.   fi
  4406. fi
  4407.  
  4408. if test -z "$list_mounted_fs"; then
  4409.   # AIX.
  4410.   echo $ac_n "checking for mntctl function and struct vmount""... $ac_c" 1>&6
  4411. echo "configure:4412: checking for mntctl function and struct vmount" >&5
  4412.   if eval "test \"`echo '$''{'fu_cv_sys_mounted_vmount'+set}'`\" = set"; then
  4413.   echo $ac_n "(cached) $ac_c" 1>&6
  4414. else
  4415.   cat > conftest.$ac_ext <<EOF
  4416. #line 4417 "configure"
  4417. #include "confdefs.h"
  4418. #include <fshelp.h>
  4419. EOF
  4420. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4421. { (eval echo configure:4422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4422. ac_err=`grep -v '^ *+' conftest.out`
  4423. if test -z "$ac_err"; then
  4424.   rm -rf conftest*
  4425.   fu_cv_sys_mounted_vmount=yes
  4426. else
  4427.   echo "$ac_err" >&5
  4428.   echo "configure: failed program was:" >&5
  4429.   cat conftest.$ac_ext >&5
  4430.   rm -rf conftest*
  4431.   fu_cv_sys_mounted_vmount=no
  4432. fi
  4433. rm -f conftest*
  4434. fi
  4435.  
  4436.   echo "$ac_t""$fu_cv_sys_mounted_vmount" 1>&6
  4437.   if test $fu_cv_sys_mounted_vmount = yes; then
  4438.     list_mounted_fs=found
  4439.     cat >> confdefs.h <<\EOF
  4440. #define MOUNTED_VMOUNT 1
  4441. EOF
  4442.  
  4443.   fi
  4444. fi
  4445.  
  4446. if test -z "$list_mounted_fs"; then
  4447.   # SVR3
  4448.   echo $ac_n "checking for FIXME existence of three headers""... $ac_c" 1>&6
  4449. echo "configure:4450: checking for FIXME existence of three headers" >&5
  4450.   if eval "test \"`echo '$''{'fu_cv_sys_mounted_fread_fstyp'+set}'`\" = set"; then
  4451.   echo $ac_n "(cached) $ac_c" 1>&6
  4452. else
  4453.   cat > conftest.$ac_ext <<EOF
  4454. #line 4455 "configure"
  4455. #include "confdefs.h"
  4456.  
  4457. #include <sys/statfs.h>
  4458. #include <sys/fstyp.h>
  4459. #include <mnttab.h>
  4460. EOF
  4461. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4462. { (eval echo configure:4463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4463. ac_err=`grep -v '^ *+' conftest.out`
  4464. if test -z "$ac_err"; then
  4465.   rm -rf conftest*
  4466.   fu_cv_sys_mounted_fread_fstyp=yes
  4467. else
  4468.   echo "$ac_err" >&5
  4469.   echo "configure: failed program was:" >&5
  4470.   cat conftest.$ac_ext >&5
  4471.   rm -rf conftest*
  4472.   fu_cv_sys_mounted_fread_fstyp=no
  4473. fi
  4474. rm -f conftest*
  4475. fi
  4476.  
  4477.   echo "$ac_t""$fu_cv_sys_mounted_fread_fstyp" 1>&6
  4478.   if test $fu_cv_sys_mounted_fread_fstyp = yes; then
  4479.     list_mounted_fs=found
  4480.     cat >> confdefs.h <<\EOF
  4481. #define MOUNTED_FREAD_FSTYP 1
  4482. EOF
  4483.  
  4484.   fi
  4485. fi
  4486.  
  4487. if test -z "$list_mounted_fs"; then
  4488.   # 4.4BSD and DEC OSF/1.
  4489.   echo $ac_n "checking for getmntinfo function""... $ac_c" 1>&6
  4490. echo "configure:4491: checking for getmntinfo function" >&5
  4491.   if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntinfo'+set}'`\" = set"; then
  4492.   echo $ac_n "(cached) $ac_c" 1>&6
  4493. else
  4494.   
  4495.       ok=
  4496.       if test $ac_cv_func_getmntinfo = yes; then
  4497.     cat > conftest.$ac_ext <<EOF
  4498. #line 4499 "configure"
  4499. #include "confdefs.h"
  4500. #include <sys/mount.h>
  4501. EOF
  4502. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4503.   egrep "f_type;" >/dev/null 2>&1; then
  4504.   rm -rf conftest*
  4505.   ok=yes
  4506. fi
  4507. rm -f conftest*
  4508.  
  4509.       fi
  4510.       test -n "$ok" \
  4511.       && fu_cv_sys_mounted_getmntinfo=yes \
  4512.       || fu_cv_sys_mounted_getmntinfo=no
  4513.     
  4514. fi
  4515.  
  4516.   echo "$ac_t""$fu_cv_sys_mounted_getmntinfo" 1>&6
  4517.   if test $fu_cv_sys_mounted_getmntinfo = yes; then
  4518.     list_mounted_fs=found
  4519.     cat >> confdefs.h <<\EOF
  4520. #define MOUNTED_GETMNTINFO 1
  4521. EOF
  4522.  
  4523.   fi
  4524. fi
  4525.  
  4526. # FIXME: add a test for netbsd-1.1 here
  4527.  
  4528. if test -z "$list_mounted_fs"; then
  4529.   # Ultrix
  4530.   echo $ac_n "checking for getmnt function""... $ac_c" 1>&6
  4531. echo "configure:4532: checking for getmnt function" >&5
  4532.   if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmnt'+set}'`\" = set"; then
  4533.   echo $ac_n "(cached) $ac_c" 1>&6
  4534. else
  4535.   cat > conftest.$ac_ext <<EOF
  4536. #line 4537 "configure"
  4537. #include "confdefs.h"
  4538.  
  4539. #include <sys/fs_types.h>
  4540. #include <sys/mount.h>
  4541. EOF
  4542. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4543. { (eval echo configure:4544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4544. ac_err=`grep -v '^ *+' conftest.out`
  4545. if test -z "$ac_err"; then
  4546.   rm -rf conftest*
  4547.   fu_cv_sys_mounted_getmnt=yes
  4548. else
  4549.   echo "$ac_err" >&5
  4550.   echo "configure: failed program was:" >&5
  4551.   cat conftest.$ac_ext >&5
  4552.   rm -rf conftest*
  4553.   fu_cv_sys_mounted_getmnt=no
  4554. fi
  4555. rm -f conftest*
  4556. fi
  4557.  
  4558.   echo "$ac_t""$fu_cv_sys_mounted_getmnt" 1>&6
  4559.   if test $fu_cv_sys_mounted_getmnt = yes; then
  4560.     list_mounted_fs=found
  4561.     cat >> confdefs.h <<\EOF
  4562. #define MOUNTED_GETMNT 1
  4563. EOF
  4564.  
  4565.   fi
  4566. fi
  4567.  
  4568. if test -z "$list_mounted_fs"; then
  4569.   # SVR2
  4570.   echo $ac_n "checking whether it is possible to resort to fread on /etc/mnttab""... $ac_c" 1>&6
  4571. echo "configure:4572: checking whether it is possible to resort to fread on /etc/mnttab" >&5
  4572.   if eval "test \"`echo '$''{'fu_cv_sys_mounted_fread'+set}'`\" = set"; then
  4573.   echo $ac_n "(cached) $ac_c" 1>&6
  4574. else
  4575.   cat > conftest.$ac_ext <<EOF
  4576. #line 4577 "configure"
  4577. #include "confdefs.h"
  4578. #include <mnttab.h>
  4579. EOF
  4580. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4581. { (eval echo configure:4582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4582. ac_err=`grep -v '^ *+' conftest.out`
  4583. if test -z "$ac_err"; then
  4584.   rm -rf conftest*
  4585.   fu_cv_sys_mounted_fread=yes
  4586. else
  4587.   echo "$ac_err" >&5
  4588.   echo "configure: failed program was:" >&5
  4589.   cat conftest.$ac_ext >&5
  4590.   rm -rf conftest*
  4591.   fu_cv_sys_mounted_fread=no
  4592. fi
  4593. rm -f conftest*
  4594. fi
  4595.  
  4596.   echo "$ac_t""$fu_cv_sys_mounted_fread" 1>&6
  4597.   if test $fu_cv_sys_mounted_fread = yes; then
  4598.     list_mounted_fs=found
  4599.     cat >> confdefs.h <<\EOF
  4600. #define MOUNTED_FREAD 1
  4601. EOF
  4602.  
  4603.   fi
  4604. fi
  4605.  
  4606. if test -z "$list_mounted_fs"; then
  4607.   { echo "configure: error: could not determine how to read list of mounted filesystems" 1>&2; exit 1; }
  4608.   # FIXME -- no need to abort building the whole package
  4609.   # Can't build mountlist.c or anything that needs its functions
  4610. fi
  4611.  
  4612. echo "checking how to get filesystem space usage" 1>&6
  4613. echo "configure:4614: checking how to get filesystem space usage" >&5
  4614. space=no
  4615.  
  4616. # Perform only the link test since it seems there are no variants of the
  4617. # statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
  4618. # because that got a false positive on SCO OSR5.  Adding the declaration
  4619. # of a `struct statvfs' causes this test to fail (as it should) on such
  4620. # systems.  That system is reported to work fine with STAT_STATFS4 which
  4621. # is what it gets when this test fails.
  4622. if test $space = no; then
  4623.   # SVR4
  4624.   echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
  4625. echo "configure:4626: checking statvfs function (SVR4)" >&5
  4626. if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
  4627.   echo $ac_n "(cached) $ac_c" 1>&6
  4628. else
  4629.   cat > conftest.$ac_ext <<EOF
  4630. #line 4631 "configure"
  4631. #include "confdefs.h"
  4632. #include <sys/types.h>
  4633. #include <sys/statvfs.h>
  4634. int main() {
  4635. struct statvfs fsd; statvfs (0, &fsd);
  4636. ; return 0; }
  4637. EOF
  4638. if { (eval echo configure:4639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4639.   rm -rf conftest*
  4640.   fu_cv_sys_stat_statvfs=yes
  4641. else
  4642.   echo "configure: failed program was:" >&5
  4643.   cat conftest.$ac_ext >&5
  4644.   rm -rf conftest*
  4645.   fu_cv_sys_stat_statvfs=no
  4646. fi
  4647. rm -f conftest*
  4648. fi
  4649.  
  4650. echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
  4651.   if test $fu_cv_sys_stat_statvfs = yes; then
  4652.     space=yes
  4653.     cat >> confdefs.h <<\EOF
  4654. #define STAT_STATVFS 1
  4655. EOF
  4656.  
  4657.   fi
  4658. fi
  4659.  
  4660. if test $space = no; then
  4661.   # DEC Alpha running OSF/1
  4662.   echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
  4663. echo "configure:4664: checking for 3-argument statfs function (DEC OSF/1)" >&5
  4664.   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
  4665.   echo $ac_n "(cached) $ac_c" 1>&6
  4666. else
  4667.   if test "$cross_compiling" = yes; then
  4668.   fu_cv_sys_stat_statfs3_osf1=no
  4669. else
  4670.   cat > conftest.$ac_ext <<EOF
  4671. #line 4672 "configure"
  4672. #include "confdefs.h"
  4673.  
  4674. #include <sys/param.h>
  4675. #include <sys/types.h>
  4676. #include <sys/mount.h>
  4677.   main ()
  4678.   {
  4679.     struct statfs fsd;
  4680.     fsd.f_fsize = 0;
  4681.     exit (statfs (".", &fsd, sizeof (struct statfs)));
  4682.   }
  4683. EOF
  4684. if { (eval echo configure:4685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  4685. then
  4686.   fu_cv_sys_stat_statfs3_osf1=yes
  4687. else
  4688.   echo "configure: failed program was:" >&5
  4689.   cat conftest.$ac_ext >&5
  4690.   rm -fr conftest*
  4691.   fu_cv_sys_stat_statfs3_osf1=no
  4692. fi
  4693. rm -fr conftest*
  4694. fi
  4695.  
  4696. fi
  4697.  
  4698.   echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
  4699.   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
  4700.     space=yes
  4701.     cat >> confdefs.h <<\EOF
  4702. #define STAT_STATFS3_OSF1 1
  4703. EOF
  4704.  
  4705.   fi
  4706. fi
  4707.  
  4708. if test $space = no; then
  4709. # AIX
  4710.   echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
  4711. echo "configure:4712: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
  4712.   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
  4713.   echo $ac_n "(cached) $ac_c" 1>&6
  4714. else
  4715.   if test "$cross_compiling" = yes; then
  4716.   fu_cv_sys_stat_statfs2_bsize=no
  4717. else
  4718.   cat > conftest.$ac_ext <<EOF
  4719. #line 4720 "configure"
  4720. #include "confdefs.h"
  4721.  
  4722. #ifdef HAVE_SYS_PARAM_H
  4723. #include <sys/param.h>
  4724. #endif
  4725. #ifdef HAVE_SYS_MOUNT_H
  4726. #include <sys/mount.h>
  4727. #endif
  4728. #ifdef HAVE_SYS_VFS_H
  4729. #include <sys/vfs.h>
  4730. #endif
  4731.   main ()
  4732.   {
  4733.   struct statfs fsd;
  4734.   fsd.f_bsize = 0;
  4735.   exit (statfs (".", &fsd));
  4736.   }
  4737. EOF
  4738. if { (eval echo configure:4739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  4739. then
  4740.   fu_cv_sys_stat_statfs2_bsize=yes
  4741. else
  4742.   echo "configure: failed program was:" >&5
  4743.   cat conftest.$ac_ext >&5
  4744.   rm -fr conftest*
  4745.   fu_cv_sys_stat_statfs2_bsize=no
  4746. fi
  4747. rm -fr conftest*
  4748. fi
  4749.  
  4750. fi
  4751.  
  4752.   echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
  4753.   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
  4754.     space=yes
  4755.     cat >> confdefs.h <<\EOF
  4756. #define STAT_STATFS2_BSIZE 1
  4757. EOF
  4758.  
  4759.   fi
  4760. fi
  4761.  
  4762. if test $space = no; then
  4763. # SVR3
  4764.   echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
  4765. echo "configure:4766: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
  4766.   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
  4767.   echo $ac_n "(cached) $ac_c" 1>&6
  4768. else
  4769.   if test "$cross_compiling" = yes; then
  4770.   fu_cv_sys_stat_statfs4=no
  4771. else
  4772.   cat > conftest.$ac_ext <<EOF
  4773. #line 4774 "configure"
  4774. #include "confdefs.h"
  4775. #include <sys/types.h>
  4776. #include <sys/statfs.h>
  4777.   main ()
  4778.   {
  4779.   struct statfs fsd;
  4780.   exit (statfs (".", &fsd, sizeof fsd, 0));
  4781.   }
  4782. EOF
  4783. if { (eval echo configure:4784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  4784. then
  4785.   fu_cv_sys_stat_statfs4=yes
  4786. else
  4787.   echo "configure: failed program was:" >&5
  4788.   cat conftest.$ac_ext >&5
  4789.   rm -fr conftest*
  4790.   fu_cv_sys_stat_statfs4=no
  4791. fi
  4792. rm -fr conftest*
  4793. fi
  4794.  
  4795. fi
  4796.  
  4797.   echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
  4798.   if test $fu_cv_sys_stat_statfs4 = yes; then
  4799.     space=yes
  4800.     cat >> confdefs.h <<\EOF
  4801. #define STAT_STATFS4 1
  4802. EOF
  4803.  
  4804.   fi
  4805. fi
  4806.  
  4807. if test $space = no; then
  4808. # 4.4BSD and NetBSD
  4809.   echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
  4810. echo "configure:4811: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
  4811.   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
  4812.   echo $ac_n "(cached) $ac_c" 1>&6
  4813. else
  4814.   if test "$cross_compiling" = yes; then
  4815.   fu_cv_sys_stat_statfs2_fsize=no
  4816. else
  4817.   cat > conftest.$ac_ext <<EOF
  4818. #line 4819 "configure"
  4819. #include "confdefs.h"
  4820. #include <sys/types.h>
  4821. #ifdef HAVE_SYS_PARAM_H
  4822. #include <sys/param.h>
  4823. #endif
  4824. #ifdef HAVE_SYS_MOUNT_H
  4825. #include <sys/mount.h>
  4826. #endif
  4827.   main ()
  4828.   {
  4829.   struct statfs fsd;
  4830.   fsd.f_fsize = 0;
  4831.   exit (statfs (".", &fsd));
  4832.   }
  4833. EOF
  4834. if { (eval echo configure:4835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  4835. then
  4836.   fu_cv_sys_stat_statfs2_fsize=yes
  4837. else
  4838.   echo "configure: failed program was:" >&5
  4839.   cat conftest.$ac_ext >&5
  4840.   rm -fr conftest*
  4841.   fu_cv_sys_stat_statfs2_fsize=no
  4842. fi
  4843. rm -fr conftest*
  4844. fi
  4845.  
  4846. fi
  4847.  
  4848.   echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
  4849.   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
  4850.     space=yes
  4851.     cat >> confdefs.h <<\EOF
  4852. #define STAT_STATFS2_FSIZE 1
  4853. EOF
  4854.  
  4855.   fi
  4856. fi
  4857.  
  4858. if test $space = no; then
  4859.   # Ultrix
  4860.   echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
  4861. echo "configure:4862: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
  4862.   if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
  4863.   echo $ac_n "(cached) $ac_c" 1>&6
  4864. else
  4865.   if test "$cross_compiling" = yes; then
  4866.   fu_cv_sys_stat_fs_data=no
  4867. else
  4868.   cat > conftest.$ac_ext <<EOF
  4869. #line 4870 "configure"
  4870. #include "confdefs.h"
  4871. #include <sys/types.h>
  4872. #ifdef HAVE_SYS_PARAM_H
  4873. #include <sys/param.h>
  4874. #endif
  4875. #ifdef HAVE_SYS_MOUNT_H
  4876. #include <sys/mount.h>
  4877. #endif
  4878. #ifdef HAVE_SYS_FS_TYPES_H
  4879. #include <sys/fs_types.h>
  4880. #endif
  4881.   main ()
  4882.   {
  4883.   struct fs_data fsd;
  4884.   /* Ultrix's statfs returns 1 for success,
  4885.      0 for not mounted, -1 for failure.  */
  4886.   exit (statfs (".", &fsd) != 1);
  4887.   }
  4888. EOF
  4889. if { (eval echo configure:4890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  4890. then
  4891.   fu_cv_sys_stat_fs_data=yes
  4892. else
  4893.   echo "configure: failed program was:" >&5
  4894.   cat conftest.$ac_ext >&5
  4895.   rm -fr conftest*
  4896.   fu_cv_sys_stat_fs_data=no
  4897. fi
  4898. rm -fr conftest*
  4899. fi
  4900.  
  4901. fi
  4902.  
  4903.   echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
  4904.   if test $fu_cv_sys_stat_fs_data = yes; then
  4905.     space=yes
  4906.     cat >> confdefs.h <<\EOF
  4907. #define STAT_STATFS2_FS_DATA 1
  4908. EOF
  4909.  
  4910.   fi
  4911. fi
  4912.  
  4913. if test $space = no; then
  4914. # SVR2
  4915. cat > conftest.$ac_ext <<EOF
  4916. #line 4917 "configure"
  4917. #include "confdefs.h"
  4918. #include <sys/filsys.h>
  4919. EOF
  4920. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4921. { (eval echo configure:4922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4922. ac_err=`grep -v '^ *+' conftest.out`
  4923. if test -z "$ac_err"; then
  4924.   rm -rf conftest*
  4925.   cat >> confdefs.h <<\EOF
  4926. #define STAT_READ_FILSYS 1
  4927. EOF
  4928.  space=yes
  4929. else
  4930.   echo "$ac_err" >&5
  4931.   echo "configure: failed program was:" >&5
  4932.   cat conftest.$ac_ext >&5
  4933. fi
  4934. rm -f conftest*
  4935. fi
  4936.  
  4937. if test -n "$list_mounted_fs" && test $space != no; then
  4938.   DF_PROG="df"
  4939.   LIBOBJS="$LIBOBJS fsusage.o"
  4940.   LIBOBJS="$LIBOBJS mountlist.o"
  4941. fi
  4942.  
  4943. for ac_func in ftruncate
  4944. do
  4945. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4946. echo "configure:4947: checking for $ac_func" >&5
  4947. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4948.   echo $ac_n "(cached) $ac_c" 1>&6
  4949. else
  4950.   cat > conftest.$ac_ext <<EOF
  4951. #line 4952 "configure"
  4952. #include "confdefs.h"
  4953. /* System header to define __stub macros and hopefully few prototypes,
  4954.     which can conflict with char $ac_func(); below.  */
  4955. #include <assert.h>
  4956. /* Override any gcc2 internal prototype to avoid an error.  */
  4957. /* We use char because int might match the return type of a gcc2
  4958.     builtin and then its argument prototype would still apply.  */
  4959. char $ac_func();
  4960.  
  4961. int main() {
  4962.  
  4963. /* The GNU C library defines this for functions which it implements
  4964.     to always fail with ENOSYS.  Some functions are actually named
  4965.     something starting with __ and the normal name is an alias.  */
  4966. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4967. choke me
  4968. #else
  4969. $ac_func();
  4970. #endif
  4971.  
  4972. ; return 0; }
  4973. EOF
  4974. if { (eval echo configure:4975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4975.   rm -rf conftest*
  4976.   eval "ac_cv_func_$ac_func=yes"
  4977. else
  4978.   echo "configure: failed program was:" >&5
  4979.   cat conftest.$ac_ext >&5
  4980.   rm -rf conftest*
  4981.   eval "ac_cv_func_$ac_func=no"
  4982. fi
  4983. rm -f conftest*
  4984. fi
  4985.  
  4986. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4987.   echo "$ac_t""yes" 1>&6
  4988.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4989.   cat >> confdefs.h <<EOF
  4990. #define $ac_tr_func 1
  4991. EOF
  4992.  
  4993. else
  4994.   echo "$ac_t""no" 1>&6
  4995. ftruncate_missing=yes
  4996. fi
  4997. done
  4998.  
  4999.  
  5000. if test "$ftruncate_missing" = yes; then
  5001.   echo $ac_n "checking fcntl emulation of ftruncate""... $ac_c" 1>&6
  5002. echo "configure:5003: checking fcntl emulation of ftruncate" >&5
  5003.   if eval "test \"`echo '$''{'fu_cv_sys_ftruncate_emulation'+set}'`\" = set"; then
  5004.   echo $ac_n "(cached) $ac_c" 1>&6
  5005. else
  5006.   cat > conftest.$ac_ext <<EOF
  5007. #line 5008 "configure"
  5008. #include "confdefs.h"
  5009.  
  5010. #include <sys/types.h>
  5011. #include <fcntl.h>
  5012. int main() {
  5013.  
  5014. #if !defined(F_CHSIZE) && !defined(F_FREESP)
  5015. chsize();
  5016. #endif
  5017.  
  5018. ; return 0; }
  5019. EOF
  5020. if { (eval echo configure:5021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  5021.   rm -rf conftest*
  5022.   fu_cv_sys_ftruncate_emulation=yes
  5023. else
  5024.   echo "configure: failed program was:" >&5
  5025.   cat conftest.$ac_ext >&5
  5026.   rm -rf conftest*
  5027.   fu_cv_sys_ftruncate_emulation=no
  5028. fi
  5029. rm -f conftest*
  5030. fi
  5031.  
  5032.   echo "$ac_t""$fu_cv_sys_ftruncate_emulation" 1>&6
  5033.   if test $fu_cv_sys_ftruncate_emulation = yes; then
  5034.     LIBOBJS="$LIBOBJS ftruncate.o"
  5035.   fi
  5036. fi
  5037.  
  5038. case "$LIBOBJS" in
  5039. *rename.o*)
  5040.   MVDIR_PROG="mvdir"
  5041.   ;;
  5042. esac
  5043.  
  5044. # Check for SunOS statfs brokenness wrt partitions 2GB and larger.
  5045. # If <sys/vfs.h> exists and struct statfs has a member named f_spare,
  5046. # enable the work-around code in fsusage.c.
  5047. echo $ac_n "checking for statfs that truncates block counts""... $ac_c" 1>&6
  5048. echo "configure:5049: checking for statfs that truncates block counts" >&5
  5049. if eval "test \"`echo '$''{'fu_cv_sys_truncating_statfs'+set}'`\" = set"; then
  5050.   echo $ac_n "(cached) $ac_c" 1>&6
  5051. else
  5052.   cat > conftest.$ac_ext <<EOF
  5053. #line 5054 "configure"
  5054. #include "confdefs.h"
  5055.  
  5056. #if !defined(sun) && !defined(__sun)
  5057. choke -- this is a workaround for a Sun-specific problem
  5058. #endif
  5059. #include <sys/types.h>
  5060. #include <sys/vfs.h>
  5061. int main() {
  5062. struct statfs t; long c = *(t.f_spare);
  5063. ; return 0; }
  5064. EOF
  5065. if { (eval echo configure:5066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5066.   rm -rf conftest*
  5067.   fu_cv_sys_truncating_statfs=yes
  5068. else
  5069.   echo "configure: failed program was:" >&5
  5070.   cat conftest.$ac_ext >&5
  5071.   rm -rf conftest*
  5072.   fu_cv_sys_truncating_statfs=no
  5073. fi
  5074. rm -f conftest*
  5075. fi
  5076.  
  5077. if test $fu_cv_sys_truncating_statfs = yes; then
  5078.   cat >> confdefs.h <<\EOF
  5079. #define STATFS_TRUNCATES_BLOCK_COUNTS 1
  5080. EOF
  5081.  
  5082. fi
  5083. echo "$ac_t""$fu_cv_sys_truncating_statfs" 1>&6
  5084.  
  5085.   for ac_func in getgroups
  5086. do
  5087. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  5088. echo "configure:5089: checking for $ac_func" >&5
  5089. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  5090.   echo $ac_n "(cached) $ac_c" 1>&6
  5091. else
  5092.   cat > conftest.$ac_ext <<EOF
  5093. #line 5094 "configure"
  5094. #include "confdefs.h"
  5095. /* System header to define __stub macros and hopefully few prototypes,
  5096.     which can conflict with char $ac_func(); below.  */
  5097. #include <assert.h>
  5098. /* Override any gcc2 internal prototype to avoid an error.  */
  5099. /* We use char because int might match the return type of a gcc2
  5100.     builtin and then its argument prototype would still apply.  */
  5101. char $ac_func();
  5102.  
  5103. int main() {
  5104.  
  5105. /* The GNU C library defines this for functions which it implements
  5106.     to always fail with ENOSYS.  Some functions are actually named
  5107.     something starting with __ and the normal name is an alias.  */
  5108. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5109. choke me
  5110. #else
  5111. $ac_func();
  5112. #endif
  5113.  
  5114. ; return 0; }
  5115. EOF
  5116. if { (eval echo configure:5117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  5117.   rm -rf conftest*
  5118.   eval "ac_cv_func_$ac_func=yes"
  5119. else
  5120.   echo "configure: failed program was:" >&5
  5121.   cat conftest.$ac_ext >&5
  5122.   rm -rf conftest*
  5123.   eval "ac_cv_func_$ac_func=no"
  5124. fi
  5125. rm -f conftest*
  5126. fi
  5127.  
  5128. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  5129.   echo "$ac_t""yes" 1>&6
  5130.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5131.   cat >> confdefs.h <<EOF
  5132. #define $ac_tr_func 1
  5133. EOF
  5134.  
  5135. else
  5136.   echo "$ac_t""no" 1>&6
  5137. fi
  5138. done
  5139.  
  5140.  
  5141.  # If we don't yet have getgroups, see if it's in -lbsd.
  5142.  # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
  5143.  if test $ac_cv_func_getgroups = no; then
  5144.    jm_cv_sys_getgroups_saved_lib="$LIBS"
  5145.    echo $ac_n "checking for getgroups in -lbsd""... $ac_c" 1>&6
  5146. echo "configure:5147: checking for getgroups in -lbsd" >&5
  5147. ac_lib_var=`echo bsd'_'getgroups | sed 'y%./+-%__p_%'`
  5148. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5149.   echo $ac_n "(cached) $ac_c" 1>&6
  5150. else
  5151.   ac_save_LIBS="$LIBS"
  5152. LIBS="-lbsd  $LIBS"
  5153. cat > conftest.$ac_ext <<EOF
  5154. #line 5155 "configure"
  5155. #include "confdefs.h"
  5156. /* Override any gcc2 internal prototype to avoid an error.  */
  5157. /* We use char because int might match the return type of a gcc2
  5158.     builtin and then its argument prototype would still apply.  */
  5159. char getgroups();
  5160.  
  5161. int main() {
  5162. getgroups()
  5163. ; return 0; }
  5164. EOF
  5165. if { (eval echo configure:5166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  5166.   rm -rf conftest*
  5167.   eval "ac_cv_lib_$ac_lib_var=yes"
  5168. else
  5169.   echo "configure: failed program was:" >&5
  5170.   cat conftest.$ac_ext >&5
  5171.   rm -rf conftest*
  5172.   eval "ac_cv_lib_$ac_lib_var=no"
  5173. fi
  5174. rm -f conftest*
  5175. LIBS="$ac_save_LIBS"
  5176.  
  5177. fi
  5178. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5179.   echo "$ac_t""yes" 1>&6
  5180.   GETGROUPS_LIB=-lbsd
  5181. else
  5182.   echo "$ac_t""no" 1>&6
  5183. fi
  5184.  
  5185.    LIBS="$jm_cv_sys_getgroups_saved_lib"
  5186.  fi
  5187.  
  5188.  # Run the program to test the functionality of the system-supplied
  5189.  # getgroups function only if there is such a function.
  5190.  if test $ac_cv_func_getgroups = yes; then
  5191.    echo $ac_n "checking for working getgroups""... $ac_c" 1>&6
  5192. echo "configure:5193: checking for working getgroups" >&5
  5193. if eval "test \"`echo '$''{'jm_cv_func_working_getgroups'+set}'`\" = set"; then
  5194.   echo $ac_n "(cached) $ac_c" 1>&6
  5195. else
  5196.   if test "$cross_compiling" = yes; then
  5197.              jm_cv_func_working_getgroups=no
  5198. else
  5199.   cat > conftest.$ac_ext <<EOF
  5200. #line 5201 "configure"
  5201. #include "confdefs.h"
  5202.  
  5203.       int
  5204.       main ()
  5205.       {
  5206.     /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
  5207.     exit (getgroups (0, 0) == -1 ? 1 : 0);
  5208.       }
  5209.         
  5210. EOF
  5211. if { (eval echo configure:5212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  5212. then
  5213.   jm_cv_func_working_getgroups=yes
  5214. else
  5215.   echo "configure: failed program was:" >&5
  5216.   cat conftest.$ac_ext >&5
  5217.   rm -fr conftest*
  5218.   jm_cv_func_working_getgroups=no
  5219. fi
  5220. rm -fr conftest*
  5221. fi
  5222.  
  5223.     
  5224. fi
  5225.  
  5226. echo "$ac_t""$jm_cv_func_working_getgroups" 1>&6
  5227.     if test $jm_cv_func_working_getgroups = no; then
  5228.       LIBOBJS="$LIBOBJS getgroups.o"
  5229.       cat >> confdefs.h <<EOF
  5230. #define getgroups rpl_getgroups
  5231. EOF
  5232.  
  5233.     fi
  5234.   fi
  5235.  
  5236. test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
  5237.  
  5238. # Check for libypsec.a on Dolphin M88K machines.
  5239. echo $ac_n "checking for main in -lypsec""... $ac_c" 1>&6
  5240. echo "configure:5241: checking for main in -lypsec" >&5
  5241. ac_lib_var=`echo ypsec'_'main | sed 'y%./+-%__p_%'`
  5242. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5243.   echo $ac_n "(cached) $ac_c" 1>&6
  5244. else
  5245.   ac_save_LIBS="$LIBS"
  5246. LIBS="-lypsec  $LIBS"
  5247. cat > conftest.$ac_ext <<EOF
  5248. #line 5249 "configure"
  5249. #include "confdefs.h"
  5250.  
  5251. int main() {
  5252. main()
  5253. ; return 0; }
  5254. EOF
  5255. if { (eval echo configure:5256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  5256.   rm -rf conftest*
  5257.   eval "ac_cv_lib_$ac_lib_var=yes"
  5258. else
  5259.   echo "configure: failed program was:" >&5
  5260.   cat conftest.$ac_ext >&5
  5261.   rm -rf conftest*
  5262.   eval "ac_cv_lib_$ac_lib_var=no"
  5263. fi
  5264. rm -f conftest*
  5265. LIBS="$ac_save_LIBS"
  5266.  
  5267. fi
  5268. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5269.   echo "$ac_t""yes" 1>&6
  5270.     ac_tr_lib=HAVE_LIB`echo ypsec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  5271.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  5272.   cat >> confdefs.h <<EOF
  5273. #define $ac_tr_lib 1
  5274. EOF
  5275.  
  5276.   LIBS="-lypsec $LIBS"
  5277.  
  5278. else
  5279.   echo "$ac_t""no" 1>&6
  5280. fi
  5281.  
  5282.  
  5283. # m88k running dgux 5.4 needs this
  5284. echo $ac_n "checking for main in -lldgc""... $ac_c" 1>&6
  5285. echo "configure:5286: checking for main in -lldgc" >&5
  5286. ac_lib_var=`echo ldgc'_'main | sed 'y%./+-%__p_%'`
  5287. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5288.   echo $ac_n "(cached) $ac_c" 1>&6
  5289. else
  5290.   ac_save_LIBS="$LIBS"
  5291. LIBS="-lldgc  $LIBS"
  5292. cat > conftest.$ac_ext <<EOF
  5293. #line 5294 "configure"
  5294. #include "confdefs.h"
  5295.  
  5296. int main() {
  5297. main()
  5298. ; return 0; }
  5299. EOF
  5300. if { (eval echo configure:5301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  5301.   rm -rf conftest*
  5302.   eval "ac_cv_lib_$ac_lib_var=yes"
  5303. else
  5304.   echo "configure: failed program was:" >&5
  5305.   cat conftest.$ac_ext >&5
  5306.   rm -rf conftest*
  5307.   eval "ac_cv_lib_$ac_lib_var=no"
  5308. fi
  5309. rm -f conftest*
  5310. LIBS="$ac_save_LIBS"
  5311.  
  5312. fi
  5313. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5314.   echo "$ac_t""yes" 1>&6
  5315.     ac_tr_lib=HAVE_LIB`echo ldgc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  5316.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  5317.   cat >> confdefs.h <<EOF
  5318. #define $ac_tr_lib 1
  5319. EOF
  5320.  
  5321.   LIBS="-lldgc $LIBS"
  5322.  
  5323. else
  5324.   echo "$ac_t""no" 1>&6
  5325. fi
  5326.  
  5327.  
  5328. echo "checking for AFS" 1>&6
  5329. echo "configure:5330: checking for AFS" >&5
  5330. test -d /afs && cat >> confdefs.h <<\EOF
  5331. #define AFS 1
  5332. EOF
  5333.  
  5334.  
  5335. echo $ac_n "checking for inline""... $ac_c" 1>&6
  5336. echo "configure:5337: checking for inline" >&5
  5337. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  5338.   echo $ac_n "(cached) $ac_c" 1>&6
  5339. else
  5340.   ac_cv_c_inline=no
  5341. for ac_kw in inline __inline__ __inline; do
  5342.   cat > conftest.$ac_ext <<EOF
  5343. #line 5344 "configure"
  5344. #include "confdefs.h"
  5345.  
  5346. int main() {
  5347. } $ac_kw foo() {
  5348. ; return 0; }
  5349. EOF
  5350. if { (eval echo configure:5351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5351.   rm -rf conftest*
  5352.   ac_cv_c_inline=$ac_kw; break
  5353. else
  5354.   echo "configure: failed program was:" >&5
  5355.   cat conftest.$ac_ext >&5
  5356. fi
  5357. rm -f conftest*
  5358. done
  5359.  
  5360. fi
  5361.  
  5362. echo "$ac_t""$ac_cv_c_inline" 1>&6
  5363. case "$ac_cv_c_inline" in
  5364.   inline | yes) ;;
  5365.   no) cat >> confdefs.h <<\EOF
  5366. #define inline 
  5367. EOF
  5368.  ;;
  5369.   *)  cat >> confdefs.h <<EOF
  5370. #define inline $ac_cv_c_inline
  5371. EOF
  5372.  ;;
  5373. esac
  5374.  
  5375. for ac_hdr in unistd.h
  5376. do
  5377. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5378. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5379. echo "configure:5380: checking for $ac_hdr" >&5
  5380. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5381.   echo $ac_n "(cached) $ac_c" 1>&6
  5382. else
  5383.   cat > conftest.$ac_ext <<EOF
  5384. #line 5385 "configure"
  5385. #include "confdefs.h"
  5386. #include <$ac_hdr>
  5387. EOF
  5388. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5389. { (eval echo configure:5390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5390. ac_err=`grep -v '^ *+' conftest.out`
  5391. if test -z "$ac_err"; then
  5392.   rm -rf conftest*
  5393.   eval "ac_cv_header_$ac_safe=yes"
  5394. else
  5395.   echo "$ac_err" >&5
  5396.   echo "configure: failed program was:" >&5
  5397.   cat conftest.$ac_ext >&5
  5398.   rm -rf conftest*
  5399.   eval "ac_cv_header_$ac_safe=no"
  5400. fi
  5401. rm -f conftest*
  5402. fi
  5403. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5404.   echo "$ac_t""yes" 1>&6
  5405.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5406.   cat >> confdefs.h <<EOF
  5407. #define $ac_tr_hdr 1
  5408. EOF
  5409.  
  5410. else
  5411.   echo "$ac_t""no" 1>&6
  5412. fi
  5413. done
  5414.  
  5415. for ac_func in getpagesize
  5416. do
  5417. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  5418. echo "configure:5419: checking for $ac_func" >&5
  5419. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  5420.   echo $ac_n "(cached) $ac_c" 1>&6
  5421. else
  5422.   cat > conftest.$ac_ext <<EOF
  5423. #line 5424 "configure"
  5424. #include "confdefs.h"
  5425. /* System header to define __stub macros and hopefully few prototypes,
  5426.     which can conflict with char $ac_func(); below.  */
  5427. #include <assert.h>
  5428. /* Override any gcc2 internal prototype to avoid an error.  */
  5429. /* We use char because int might match the return type of a gcc2
  5430.     builtin and then its argument prototype would still apply.  */
  5431. char $ac_func();
  5432.  
  5433. int main() {
  5434.  
  5435. /* The GNU C library defines this for functions which it implements
  5436.     to always fail with ENOSYS.  Some functions are actually named
  5437.     something starting with __ and the normal name is an alias.  */
  5438. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5439. choke me
  5440. #else
  5441. $ac_func();
  5442. #endif
  5443.  
  5444. ; return 0; }
  5445. EOF
  5446. if { (eval echo configure:5447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  5447.   rm -rf conftest*
  5448.   eval "ac_cv_func_$ac_func=yes"
  5449. else
  5450.   echo "configure: failed program was:" >&5
  5451.   cat conftest.$ac_ext >&5
  5452.   rm -rf conftest*
  5453.   eval "ac_cv_func_$ac_func=no"
  5454. fi
  5455. rm -f conftest*
  5456. fi
  5457.  
  5458. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  5459.   echo "$ac_t""yes" 1>&6
  5460.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5461.   cat >> confdefs.h <<EOF
  5462. #define $ac_tr_func 1
  5463. EOF
  5464.  
  5465. else
  5466.   echo "$ac_t""no" 1>&6
  5467. fi
  5468. done
  5469.  
  5470. echo $ac_n "checking for working mmap""... $ac_c" 1>&6
  5471. echo "configure:5472: checking for working mmap" >&5
  5472. if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
  5473.   echo $ac_n "(cached) $ac_c" 1>&6
  5474. else
  5475.   if test "$cross_compiling" = yes; then
  5476.   ac_cv_func_mmap_fixed_mapped=no
  5477. else
  5478.   cat > conftest.$ac_ext <<EOF
  5479. #line 5480 "configure"
  5480. #include "confdefs.h"
  5481.  
  5482. /* Thanks to Mike Haertel and Jim Avera for this test.
  5483.    Here is a matrix of mmap possibilities:
  5484.     mmap private not fixed
  5485.     mmap private fixed at somewhere currently unmapped
  5486.     mmap private fixed at somewhere already mapped
  5487.     mmap shared not fixed
  5488.     mmap shared fixed at somewhere currently unmapped
  5489.     mmap shared fixed at somewhere already mapped
  5490.    For private mappings, we should verify that changes cannot be read()
  5491.    back from the file, nor mmap's back from the file at a different
  5492.    address.  (There have been systems where private was not correctly
  5493.    implemented like the infamous i386 svr4.0, and systems where the
  5494.    VM page cache was not coherent with the filesystem buffer cache
  5495.    like early versions of FreeBSD and possibly contemporary NetBSD.)
  5496.    For shared mappings, we should conversely verify that changes get
  5497.    propogated back to all the places they're supposed to be.
  5498.  
  5499.    Grep wants private fixed already mapped.
  5500.    The main things grep needs to know about mmap are:
  5501.    * does it exist and is it safe to write into the mmap'd area
  5502.    * how to use it (BSD variants)  */
  5503. #include <sys/types.h>
  5504. #include <fcntl.h>
  5505. #include <sys/mman.h>
  5506.  
  5507. /* This mess was copied from the GNU getpagesize.h.  */
  5508. #ifndef HAVE_GETPAGESIZE
  5509. # ifdef HAVE_UNISTD_H
  5510. #  include <unistd.h>
  5511. # endif
  5512.  
  5513. /* Assume that all systems that can run configure have sys/param.h.  */
  5514. # ifndef HAVE_SYS_PARAM_H
  5515. #  define HAVE_SYS_PARAM_H 1
  5516. # endif
  5517.  
  5518. # ifdef _SC_PAGESIZE
  5519. #  define getpagesize() sysconf(_SC_PAGESIZE)
  5520. # else /* no _SC_PAGESIZE */
  5521. #  ifdef HAVE_SYS_PARAM_H
  5522. #   include <sys/param.h>
  5523. #   ifdef EXEC_PAGESIZE
  5524. #    define getpagesize() EXEC_PAGESIZE
  5525. #   else /* no EXEC_PAGESIZE */
  5526. #    ifdef NBPG
  5527. #     define getpagesize() NBPG * CLSIZE
  5528. #     ifndef CLSIZE
  5529. #      define CLSIZE 1
  5530. #     endif /* no CLSIZE */
  5531. #    else /* no NBPG */
  5532. #     ifdef NBPC
  5533. #      define getpagesize() NBPC
  5534. #     else /* no NBPC */
  5535. #      ifdef PAGESIZE
  5536. #       define getpagesize() PAGESIZE
  5537. #      endif /* PAGESIZE */
  5538. #     endif /* no NBPC */
  5539. #    endif /* no NBPG */
  5540. #   endif /* no EXEC_PAGESIZE */
  5541. #  else /* no HAVE_SYS_PARAM_H */
  5542. #   define getpagesize() 8192    /* punt totally */
  5543. #  endif /* no HAVE_SYS_PARAM_H */
  5544. # endif /* no _SC_PAGESIZE */
  5545.  
  5546. #endif /* no HAVE_GETPAGESIZE */
  5547.  
  5548. #ifdef __cplusplus
  5549. extern "C" { void *malloc(unsigned); }
  5550. #else
  5551. char *malloc();
  5552. #endif
  5553.  
  5554. int
  5555. main()
  5556. {
  5557.     char *data, *data2, *data3;
  5558.     int i, pagesize;
  5559.     int fd;
  5560.  
  5561.     pagesize = getpagesize();
  5562.  
  5563.     /*
  5564.      * First, make a file with some known garbage in it.
  5565.      */
  5566.     data = malloc(pagesize);
  5567.     if (!data)
  5568.         exit(1);
  5569.     for (i = 0; i < pagesize; ++i)
  5570.         *(data + i) = rand();
  5571.     umask(0);
  5572.     fd = creat("conftestmmap", 0600);
  5573.     if (fd < 0)
  5574.         exit(1);
  5575.     if (write(fd, data, pagesize) != pagesize)
  5576.         exit(1);
  5577.     close(fd);
  5578.  
  5579.     /*
  5580.      * Next, try to mmap the file at a fixed address which
  5581.      * already has something else allocated at it.  If we can,
  5582.      * also make sure that we see the same garbage.
  5583.      */
  5584.     fd = open("conftestmmap", O_RDWR);
  5585.     if (fd < 0)
  5586.         exit(1);
  5587.     data2 = malloc(2 * pagesize);
  5588.     if (!data2)
  5589.         exit(1);
  5590.     data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
  5591.     if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
  5592.         MAP_PRIVATE | MAP_FIXED, fd, 0L))
  5593.         exit(1);
  5594.     for (i = 0; i < pagesize; ++i)
  5595.         if (*(data + i) != *(data2 + i))
  5596.             exit(1);
  5597.  
  5598.     /*
  5599.      * Finally, make sure that changes to the mapped area
  5600.      * do not percolate back to the file as seen by read().
  5601.      * (This is a bug on some variants of i386 svr4.0.)
  5602.      */
  5603.     for (i = 0; i < pagesize; ++i)
  5604.         *(data2 + i) = *(data2 + i) + 1;
  5605.     data3 = malloc(pagesize);
  5606.     if (!data3)
  5607.         exit(1);
  5608.     if (read(fd, data3, pagesize) != pagesize)
  5609.         exit(1);
  5610.     for (i = 0; i < pagesize; ++i)
  5611.         if (*(data + i) != *(data3 + i))
  5612.             exit(1);
  5613.     close(fd);
  5614.     unlink("conftestmmap");
  5615.     exit(0);
  5616. }
  5617.  
  5618. EOF
  5619. if { (eval echo configure:5620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  5620. then
  5621.   ac_cv_func_mmap_fixed_mapped=yes
  5622. else
  5623.   echo "configure: failed program was:" >&5
  5624.   cat conftest.$ac_ext >&5
  5625.   rm -fr conftest*
  5626.   ac_cv_func_mmap_fixed_mapped=no
  5627. fi
  5628. rm -fr conftest*
  5629. fi
  5630.  
  5631. fi
  5632.  
  5633. echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
  5634. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  5635.   cat >> confdefs.h <<\EOF
  5636. #define HAVE_MMAP 1
  5637. EOF
  5638.  
  5639. fi
  5640.  
  5641.                            
  5642.    for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
  5643. unistd.h values.h
  5644. do
  5645. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5646. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5647. echo "configure:5648: checking for $ac_hdr" >&5
  5648. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5649.   echo $ac_n "(cached) $ac_c" 1>&6
  5650. else
  5651.   cat > conftest.$ac_ext <<EOF
  5652. #line 5653 "configure"
  5653. #include "confdefs.h"
  5654. #include <$ac_hdr>
  5655. EOF
  5656. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5657. { (eval echo configure:5658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5658. ac_err=`grep -v '^ *+' conftest.out`
  5659. if test -z "$ac_err"; then
  5660.   rm -rf conftest*
  5661.   eval "ac_cv_header_$ac_safe=yes"
  5662. else
  5663.   echo "$ac_err" >&5
  5664.   echo "configure: failed program was:" >&5
  5665.   cat conftest.$ac_ext >&5
  5666.   rm -rf conftest*
  5667.   eval "ac_cv_header_$ac_safe=no"
  5668. fi
  5669. rm -f conftest*
  5670. fi
  5671. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5672.   echo "$ac_t""yes" 1>&6
  5673.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5674.   cat >> confdefs.h <<EOF
  5675. #define $ac_tr_hdr 1
  5676. EOF
  5677.  
  5678. else
  5679.   echo "$ac_t""no" 1>&6
  5680. fi
  5681. done
  5682.  
  5683.    for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
  5684. __argz_count __argz_stringify __argz_next
  5685. do
  5686. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  5687. echo "configure:5688: checking for $ac_func" >&5
  5688. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  5689.   echo $ac_n "(cached) $ac_c" 1>&6
  5690. else
  5691.   cat > conftest.$ac_ext <<EOF
  5692. #line 5693 "configure"
  5693. #include "confdefs.h"
  5694. /* System header to define __stub macros and hopefully few prototypes,
  5695.     which can conflict with char $ac_func(); below.  */
  5696. #include <assert.h>
  5697. /* Override any gcc2 internal prototype to avoid an error.  */
  5698. /* We use char because int might match the return type of a gcc2
  5699.     builtin and then its argument prototype would still apply.  */
  5700. char $ac_func();
  5701.  
  5702. int main() {
  5703.  
  5704. /* The GNU C library defines this for functions which it implements
  5705.     to always fail with ENOSYS.  Some functions are actually named
  5706.     something starting with __ and the normal name is an alias.  */
  5707. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5708. choke me
  5709. #else
  5710. $ac_func();
  5711. #endif
  5712.  
  5713. ; return 0; }
  5714. EOF
  5715. if { (eval echo configure:5716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  5716.   rm -rf conftest*
  5717.   eval "ac_cv_func_$ac_func=yes"
  5718. else
  5719.   echo "configure: failed program was:" >&5
  5720.   cat conftest.$ac_ext >&5
  5721.   rm -rf conftest*
  5722.   eval "ac_cv_func_$ac_func=no"
  5723. fi
  5724. rm -f conftest*
  5725. fi
  5726.  
  5727. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  5728.   echo "$ac_t""yes" 1>&6
  5729.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5730.   cat >> confdefs.h <<EOF
  5731. #define $ac_tr_func 1
  5732. EOF
  5733.  
  5734. else
  5735.   echo "$ac_t""no" 1>&6
  5736. fi
  5737. done
  5738.  
  5739.  
  5740.    if test "${ac_cv_func_stpcpy+set}" != "set"; then
  5741.      for ac_func in stpcpy
  5742. do
  5743. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  5744. echo "configure:5745: checking for $ac_func" >&5
  5745. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  5746.   echo $ac_n "(cached) $ac_c" 1>&6
  5747. else
  5748.   cat > conftest.$ac_ext <<EOF
  5749. #line 5750 "configure"
  5750. #include "confdefs.h"
  5751. /* System header to define __stub macros and hopefully few prototypes,
  5752.     which can conflict with char $ac_func(); below.  */
  5753. #include <assert.h>
  5754. /* Override any gcc2 internal prototype to avoid an error.  */
  5755. /* We use char because int might match the return type of a gcc2
  5756.     builtin and then its argument prototype would still apply.  */
  5757. char $ac_func();
  5758.  
  5759. int main() {
  5760.  
  5761. /* The GNU C library defines this for functions which it implements
  5762.     to always fail with ENOSYS.  Some functions are actually named
  5763.     something starting with __ and the normal name is an alias.  */
  5764. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5765. choke me
  5766. #else
  5767. $ac_func();
  5768. #endif
  5769.  
  5770. ; return 0; }
  5771. EOF
  5772. if { (eval echo configure:5773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  5773.   rm -rf conftest*
  5774.   eval "ac_cv_func_$ac_func=yes"
  5775. else
  5776.   echo "configure: failed program was:" >&5
  5777.   cat conftest.$ac_ext >&5
  5778.   rm -rf conftest*
  5779.   eval "ac_cv_func_$ac_func=no"
  5780. fi
  5781. rm -f conftest*
  5782. fi
  5783.  
  5784. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  5785.   echo "$ac_t""yes" 1>&6
  5786.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5787.   cat >> confdefs.h <<EOF
  5788. #define $ac_tr_func 1
  5789. EOF
  5790.  
  5791. else
  5792.   echo "$ac_t""no" 1>&6
  5793. fi
  5794. done
  5795.  
  5796.    fi
  5797.    if test "${ac_cv_func_stpcpy}" = "yes"; then
  5798.      cat >> confdefs.h <<\EOF
  5799. #define HAVE_STPCPY 1
  5800. EOF
  5801.  
  5802.    fi
  5803.  
  5804.    if test $ac_cv_header_locale_h = yes; then
  5805.     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
  5806. echo "configure:5807: checking for LC_MESSAGES" >&5
  5807. if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
  5808.   echo $ac_n "(cached) $ac_c" 1>&6
  5809. else
  5810.   cat > conftest.$ac_ext <<EOF
  5811. #line 5812 "configure"
  5812. #include "confdefs.h"
  5813. #include <locale.h>
  5814. int main() {
  5815. return LC_MESSAGES
  5816. ; return 0; }
  5817. EOF
  5818. if { (eval echo configure:5819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  5819.   rm -rf conftest*
  5820.   am_cv_val_LC_MESSAGES=yes
  5821. else
  5822.   echo "configure: failed program was:" >&5
  5823.   cat conftest.$ac_ext >&5
  5824.   rm -rf conftest*
  5825.   am_cv_val_LC_MESSAGES=no
  5826. fi
  5827. rm -f conftest*
  5828. fi
  5829.  
  5830. echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
  5831.     if test $am_cv_val_LC_MESSAGES = yes; then
  5832.       cat >> confdefs.h <<\EOF
  5833. #define HAVE_LC_MESSAGES 1
  5834. EOF
  5835.  
  5836.     fi
  5837.   fi
  5838.    echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
  5839. echo "configure:5840: checking whether NLS is requested" >&5
  5840.         # Check whether --enable-nls or --disable-nls was given.
  5841. if test "${enable_nls+set}" = set; then
  5842.   enableval="$enable_nls"
  5843.   USE_NLS=$enableval
  5844. else
  5845.   USE_NLS=yes
  5846. fi
  5847.  
  5848.     echo "$ac_t""$USE_NLS" 1>&6
  5849.     
  5850.  
  5851.     USE_INCLUDED_LIBINTL=no
  5852.  
  5853.         if test "$USE_NLS" = "yes"; then
  5854.       cat >> confdefs.h <<\EOF
  5855. #define ENABLE_NLS 1
  5856. EOF
  5857.  
  5858.       echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
  5859. echo "configure:5860: checking whether included gettext is requested" >&5
  5860.       # Check whether --with-included-gettext or --without-included-gettext was given.
  5861. if test "${with_included_gettext+set}" = set; then
  5862.   withval="$with_included_gettext"
  5863.   nls_cv_force_use_gnu_gettext=$withval
  5864. else
  5865.   nls_cv_force_use_gnu_gettext=no
  5866. fi
  5867.  
  5868.       echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
  5869.  
  5870.       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  5871.       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  5872.                                 nls_cv_header_intl=
  5873.     nls_cv_header_libgt=
  5874.     CATOBJEXT=NONE
  5875.  
  5876.     ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
  5877. echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
  5878. echo "configure:5879: checking for libintl.h" >&5
  5879. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5880.   echo $ac_n "(cached) $ac_c" 1>&6
  5881. else
  5882.   cat > conftest.$ac_ext <<EOF
  5883. #line 5884 "configure"
  5884. #include "confdefs.h"
  5885. #include <libintl.h>
  5886. EOF
  5887. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5888. { (eval echo configure:5889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5889. ac_err=`grep -v '^ *+' conftest.out`
  5890. if test -z "$ac_err"; then
  5891.   rm -rf conftest*
  5892.   eval "ac_cv_header_$ac_safe=yes"
  5893. else
  5894.   echo "$ac_err" >&5
  5895.   echo "configure: failed program was:" >&5
  5896.   cat conftest.$ac_ext >&5
  5897.   rm -rf conftest*
  5898.   eval "ac_cv_header_$ac_safe=no"
  5899. fi
  5900. rm -f conftest*
  5901. fi
  5902. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5903.   echo "$ac_t""yes" 1>&6
  5904.   echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
  5905. echo "configure:5906: checking for gettext in libc" >&5
  5906. if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
  5907.   echo $ac_n "(cached) $ac_c" 1>&6
  5908. else
  5909.   cat > conftest.$ac_ext <<EOF
  5910. #line 5911 "configure"
  5911. #include "confdefs.h"
  5912. #include <libintl.h>
  5913. int main() {
  5914. return (int) gettext ("")
  5915. ; return 0; }
  5916. EOF
  5917. if { (eval echo configure:5918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  5918.   rm -rf conftest*
  5919.   gt_cv_func_gettext_libc=yes
  5920. else
  5921.   echo "configure: failed program was:" >&5
  5922.   cat conftest.$ac_ext >&5
  5923.   rm -rf conftest*
  5924.   gt_cv_func_gettext_libc=no
  5925. fi
  5926. rm -f conftest*
  5927. fi
  5928.  
  5929. echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
  5930.  
  5931.        if test "$gt_cv_func_gettext_libc" != "yes"; then
  5932.          echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
  5933. echo "configure:5934: checking for bindtextdomain in -lintl" >&5
  5934. ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
  5935. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5936.   echo $ac_n "(cached) $ac_c" 1>&6
  5937. else
  5938.   ac_save_LIBS="$LIBS"
  5939. LIBS="-lintl  $LIBS"
  5940. cat > conftest.$ac_ext <<EOF
  5941. #line 5942 "configure"
  5942. #include "confdefs.h"
  5943. /* Override any gcc2 internal prototype to avoid an error.  */
  5944. /* We use char because int might match the return type of a gcc2
  5945.     builtin and then its argument prototype would still apply.  */
  5946. char bindtextdomain();
  5947.  
  5948. int main() {
  5949. bindtextdomain()
  5950. ; return 0; }
  5951. EOF
  5952. if { (eval echo configure:5953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  5953.   rm -rf conftest*
  5954.   eval "ac_cv_lib_$ac_lib_var=yes"
  5955. else
  5956.   echo "configure: failed program was:" >&5
  5957.   cat conftest.$ac_ext >&5
  5958.   rm -rf conftest*
  5959.   eval "ac_cv_lib_$ac_lib_var=no"
  5960. fi
  5961. rm -f conftest*
  5962. LIBS="$ac_save_LIBS"
  5963.  
  5964. fi
  5965. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5966.   echo "$ac_t""yes" 1>&6
  5967.   echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
  5968. echo "configure:5969: checking for gettext in libintl" >&5
  5969. if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
  5970.   echo $ac_n "(cached) $ac_c" 1>&6
  5971. else
  5972.   cat > conftest.$ac_ext <<EOF
  5973. #line 5974 "configure"
  5974. #include "confdefs.h"
  5975.  
  5976. int main() {
  5977. return (int) gettext ("")
  5978. ; return 0; }
  5979. EOF
  5980. if { (eval echo configure:5981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  5981.   rm -rf conftest*
  5982.   gt_cv_func_gettext_libintl=yes
  5983. else
  5984.   echo "configure: failed program was:" >&5
  5985.   cat conftest.$ac_ext >&5
  5986.   rm -rf conftest*
  5987.   gt_cv_func_gettext_libintl=no
  5988. fi
  5989. rm -f conftest*
  5990. fi
  5991.  
  5992. echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
  5993. else
  5994.   echo "$ac_t""no" 1>&6
  5995. fi
  5996.  
  5997.        fi
  5998.  
  5999.        if test "$gt_cv_func_gettext_libc" = "yes" \
  6000.           || test "$gt_cv_func_gettext_libintl" = "yes"; then
  6001.           cat >> confdefs.h <<\EOF
  6002. #define HAVE_GETTEXT 1
  6003. EOF
  6004.  
  6005.           # Extract the first word of "msgfmt", so it can be a program name with args.
  6006. set dummy msgfmt; ac_word=$2
  6007. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6008. echo "configure:6009: checking for $ac_word" >&5
  6009. if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  6010.   echo $ac_n "(cached) $ac_c" 1>&6
  6011. else
  6012.   case "$MSGFMT" in
  6013.   /*)
  6014.   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  6015.   ;;
  6016.   *)
  6017.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  6018.   for ac_dir in $PATH; do
  6019.     test -z "$ac_dir" && ac_dir=.
  6020.     if test -f $ac_dir/$ac_word; then
  6021.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  6022.     ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  6023.     break
  6024.       fi
  6025.     fi
  6026.   done
  6027.   IFS="$ac_save_ifs"
  6028.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
  6029.   ;;
  6030. esac
  6031. fi
  6032. MSGFMT="$ac_cv_path_MSGFMT"
  6033. if test -n "$MSGFMT"; then
  6034.   echo "$ac_t""$MSGFMT" 1>&6
  6035. else
  6036.   echo "$ac_t""no" 1>&6
  6037. fi
  6038.           if test "$MSGFMT" != "no"; then
  6039.         for ac_func in dcgettext
  6040. do
  6041. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6042. echo "configure:6043: checking for $ac_func" >&5
  6043. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6044.   echo $ac_n "(cached) $ac_c" 1>&6
  6045. else
  6046.   cat > conftest.$ac_ext <<EOF
  6047. #line 6048 "configure"
  6048. #include "confdefs.h"
  6049. /* System header to define __stub macros and hopefully few prototypes,
  6050.     which can conflict with char $ac_func(); below.  */
  6051. #include <assert.h>
  6052. /* Override any gcc2 internal prototype to avoid an error.  */
  6053. /* We use char because int might match the return type of a gcc2
  6054.     builtin and then its argument prototype would still apply.  */
  6055. char $ac_func();
  6056.  
  6057. int main() {
  6058.  
  6059. /* The GNU C library defines this for functions which it implements
  6060.     to always fail with ENOSYS.  Some functions are actually named
  6061.     something starting with __ and the normal name is an alias.  */
  6062. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6063. choke me
  6064. #else
  6065. $ac_func();
  6066. #endif
  6067.  
  6068. ; return 0; }
  6069. EOF
  6070. if { (eval echo configure:6071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  6071.   rm -rf conftest*
  6072.   eval "ac_cv_func_$ac_func=yes"
  6073. else
  6074.   echo "configure: failed program was:" >&5
  6075.   cat conftest.$ac_ext >&5
  6076.   rm -rf conftest*
  6077.   eval "ac_cv_func_$ac_func=no"
  6078. fi
  6079. rm -f conftest*
  6080. fi
  6081.  
  6082. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6083.   echo "$ac_t""yes" 1>&6
  6084.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6085.   cat >> confdefs.h <<EOF
  6086. #define $ac_tr_func 1
  6087. EOF
  6088.  
  6089. else
  6090.   echo "$ac_t""no" 1>&6
  6091. fi
  6092. done
  6093.  
  6094.         # Extract the first word of "gmsgfmt", so it can be a program name with args.
  6095. set dummy gmsgfmt; ac_word=$2
  6096. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6097. echo "configure:6098: checking for $ac_word" >&5
  6098. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  6099.   echo $ac_n "(cached) $ac_c" 1>&6
  6100. else
  6101.   case "$GMSGFMT" in
  6102.   /*)
  6103.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  6104.   ;;
  6105.   *)
  6106.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  6107.   for ac_dir in $PATH; do
  6108.     test -z "$ac_dir" && ac_dir=.
  6109.     if test -f $ac_dir/$ac_word; then
  6110.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  6111.       break
  6112.     fi
  6113.   done
  6114.   IFS="$ac_save_ifs"
  6115.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  6116.   ;;
  6117. esac
  6118. fi
  6119. GMSGFMT="$ac_cv_path_GMSGFMT"
  6120. if test -n "$GMSGFMT"; then
  6121.   echo "$ac_t""$GMSGFMT" 1>&6
  6122. else
  6123.   echo "$ac_t""no" 1>&6
  6124. fi
  6125.  
  6126.         # Extract the first word of "xgettext", so it can be a program name with args.
  6127. set dummy xgettext; ac_word=$2
  6128. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6129. echo "configure:6130: checking for $ac_word" >&5
  6130. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  6131.   echo $ac_n "(cached) $ac_c" 1>&6
  6132. else
  6133.   case "$XGETTEXT" in
  6134.   /*)
  6135.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  6136.   ;;
  6137.   *)
  6138.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  6139.   for ac_dir in $PATH; do
  6140.     test -z "$ac_dir" && ac_dir=.
  6141.     if test -f $ac_dir/$ac_word; then
  6142.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  6143.     ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  6144.     break
  6145.       fi
  6146.     fi
  6147.   done
  6148.   IFS="$ac_save_ifs"
  6149.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  6150.   ;;
  6151. esac
  6152. fi
  6153. XGETTEXT="$ac_cv_path_XGETTEXT"
  6154. if test -n "$XGETTEXT"; then
  6155.   echo "$ac_t""$XGETTEXT" 1>&6
  6156. else
  6157.   echo "$ac_t""no" 1>&6
  6158. fi
  6159.  
  6160.         cat > conftest.$ac_ext <<EOF
  6161. #line 6162 "configure"
  6162. #include "confdefs.h"
  6163.  
  6164. int main() {
  6165. extern int _nl_msg_cat_cntr;
  6166.                    return _nl_msg_cat_cntr
  6167. ; return 0; }
  6168. EOF
  6169. if { (eval echo configure:6170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  6170.   rm -rf conftest*
  6171.   CATOBJEXT=.gmo
  6172.            DATADIRNAME=share
  6173. else
  6174.   echo "configure: failed program was:" >&5
  6175.   cat conftest.$ac_ext >&5
  6176.   rm -rf conftest*
  6177.   CATOBJEXT=.mo
  6178.            DATADIRNAME=lib
  6179. fi
  6180. rm -f conftest*
  6181.         INSTOBJEXT=.mo
  6182.           fi
  6183.         fi
  6184.     
  6185. else
  6186.   echo "$ac_t""no" 1>&6
  6187. fi
  6188.  
  6189.  
  6190.         if test "$CATOBJEXT" = "NONE"; then
  6191.       echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
  6192. echo "configure:6193: checking whether catgets can be used" >&5
  6193.       # Check whether --with-catgets or --without-catgets was given.
  6194. if test "${with_catgets+set}" = set; then
  6195.   withval="$with_catgets"
  6196.   nls_cv_use_catgets=$withval
  6197. else
  6198.   nls_cv_use_catgets=no
  6199. fi
  6200.  
  6201.       echo "$ac_t""$nls_cv_use_catgets" 1>&6
  6202.  
  6203.       if test "$nls_cv_use_catgets" = "yes"; then
  6204.                 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
  6205. echo "configure:6206: checking for main in -li" >&5
  6206. ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
  6207. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6208.   echo $ac_n "(cached) $ac_c" 1>&6
  6209. else
  6210.   ac_save_LIBS="$LIBS"
  6211. LIBS="-li  $LIBS"
  6212. cat > conftest.$ac_ext <<EOF
  6213. #line 6214 "configure"
  6214. #include "confdefs.h"
  6215.  
  6216. int main() {
  6217. main()
  6218. ; return 0; }
  6219. EOF
  6220. if { (eval echo configure:6221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  6221.   rm -rf conftest*
  6222.   eval "ac_cv_lib_$ac_lib_var=yes"
  6223. else
  6224.   echo "configure: failed program was:" >&5
  6225.   cat conftest.$ac_ext >&5
  6226.   rm -rf conftest*
  6227.   eval "ac_cv_lib_$ac_lib_var=no"
  6228. fi
  6229. rm -f conftest*
  6230. LIBS="$ac_save_LIBS"
  6231.  
  6232. fi
  6233. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6234.   echo "$ac_t""yes" 1>&6
  6235.     ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  6236.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  6237.   cat >> confdefs.h <<EOF
  6238. #define $ac_tr_lib 1
  6239. EOF
  6240.  
  6241.   LIBS="-li $LIBS"
  6242.  
  6243. else
  6244.   echo "$ac_t""no" 1>&6
  6245. fi
  6246.  
  6247.         echo $ac_n "checking for catgets""... $ac_c" 1>&6
  6248. echo "configure:6249: checking for catgets" >&5
  6249. if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
  6250.   echo $ac_n "(cached) $ac_c" 1>&6
  6251. else
  6252.   cat > conftest.$ac_ext <<EOF
  6253. #line 6254 "configure"
  6254. #include "confdefs.h"
  6255. /* System header to define __stub macros and hopefully few prototypes,
  6256.     which can conflict with char catgets(); below.  */
  6257. #include <assert.h>
  6258. /* Override any gcc2 internal prototype to avoid an error.  */
  6259. /* We use char because int might match the return type of a gcc2
  6260.     builtin and then its argument prototype would still apply.  */
  6261. char catgets();
  6262.  
  6263. int main() {
  6264.  
  6265. /* The GNU C library defines this for functions which it implements
  6266.     to always fail with ENOSYS.  Some functions are actually named
  6267.     something starting with __ and the normal name is an alias.  */
  6268. #if defined (__stub_catgets) || defined (__stub___catgets)
  6269. choke me
  6270. #else
  6271. catgets();
  6272. #endif
  6273.  
  6274. ; return 0; }
  6275. EOF
  6276. if { (eval echo configure:6277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  6277.   rm -rf conftest*
  6278.   eval "ac_cv_func_catgets=yes"
  6279. else
  6280.   echo "configure: failed program was:" >&5
  6281.   cat conftest.$ac_ext >&5
  6282.   rm -rf conftest*
  6283.   eval "ac_cv_func_catgets=no"
  6284. fi
  6285. rm -f conftest*
  6286. fi
  6287.  
  6288. if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
  6289.   echo "$ac_t""yes" 1>&6
  6290.   cat >> confdefs.h <<\EOF
  6291. #define HAVE_CATGETS 1
  6292. EOF
  6293.  
  6294.            INTLOBJS="\$(CATOBJS)"
  6295.            # Extract the first word of "gencat", so it can be a program name with args.
  6296. set dummy gencat; ac_word=$2
  6297. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6298. echo "configure:6299: checking for $ac_word" >&5
  6299. if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
  6300.   echo $ac_n "(cached) $ac_c" 1>&6
  6301. else
  6302.   case "$GENCAT" in
  6303.   /*)
  6304.   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
  6305.   ;;
  6306.   *)
  6307.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  6308.   for ac_dir in $PATH; do
  6309.     test -z "$ac_dir" && ac_dir=.
  6310.     if test -f $ac_dir/$ac_word; then
  6311.       ac_cv_path_GENCAT="$ac_dir/$ac_word"
  6312.       break
  6313.     fi
  6314.   done
  6315.   IFS="$ac_save_ifs"
  6316.   test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
  6317.   ;;
  6318. esac
  6319. fi
  6320. GENCAT="$ac_cv_path_GENCAT"
  6321. if test -n "$GENCAT"; then
  6322.   echo "$ac_t""$GENCAT" 1>&6
  6323. else
  6324.   echo "$ac_t""no" 1>&6
  6325. fi
  6326.            if test "$GENCAT" != "no"; then
  6327.          # Extract the first word of "gmsgfmt", so it can be a program name with args.
  6328. set dummy gmsgfmt; ac_word=$2
  6329. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6330. echo "configure:6331: checking for $ac_word" >&5
  6331. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  6332.   echo $ac_n "(cached) $ac_c" 1>&6
  6333. else
  6334.   case "$GMSGFMT" in
  6335.   /*)
  6336.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  6337.   ;;
  6338.   *)
  6339.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  6340.   for ac_dir in $PATH; do
  6341.     test -z "$ac_dir" && ac_dir=.
  6342.     if test -f $ac_dir/$ac_word; then
  6343.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  6344.       break
  6345.     fi
  6346.   done
  6347.   IFS="$ac_save_ifs"
  6348.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
  6349.   ;;
  6350. esac
  6351. fi
  6352. GMSGFMT="$ac_cv_path_GMSGFMT"
  6353. if test -n "$GMSGFMT"; then
  6354.   echo "$ac_t""$GMSGFMT" 1>&6
  6355. else
  6356.   echo "$ac_t""no" 1>&6
  6357. fi
  6358.  
  6359.          if test "$GMSGFMT" = "no"; then
  6360.            # Extract the first word of "msgfmt", so it can be a program name with args.
  6361. set dummy msgfmt; ac_word=$2
  6362. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6363. echo "configure:6364: checking for $ac_word" >&5
  6364. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  6365.   echo $ac_n "(cached) $ac_c" 1>&6
  6366. else
  6367.   case "$GMSGFMT" in
  6368.   /*)
  6369.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  6370.   ;;
  6371.   *)
  6372.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  6373.   for ac_dir in $PATH; do
  6374.     test -z "$ac_dir" && ac_dir=.
  6375.     if test -f $ac_dir/$ac_word; then
  6376.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  6377.     ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  6378.     break
  6379.       fi
  6380.     fi
  6381.   done
  6382.   IFS="$ac_save_ifs"
  6383.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
  6384.   ;;
  6385. esac
  6386. fi
  6387. GMSGFMT="$ac_cv_path_GMSGFMT"
  6388. if test -n "$GMSGFMT"; then
  6389.   echo "$ac_t""$GMSGFMT" 1>&6
  6390. else
  6391.   echo "$ac_t""no" 1>&6
  6392. fi
  6393.  
  6394.          fi
  6395.          # Extract the first word of "xgettext", so it can be a program name with args.
  6396. set dummy xgettext; ac_word=$2
  6397. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6398. echo "configure:6399: checking for $ac_word" >&5
  6399. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  6400.   echo $ac_n "(cached) $ac_c" 1>&6
  6401. else
  6402.   case "$XGETTEXT" in
  6403.   /*)
  6404.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  6405.   ;;
  6406.   *)
  6407.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  6408.   for ac_dir in $PATH; do
  6409.     test -z "$ac_dir" && ac_dir=.
  6410.     if test -f $ac_dir/$ac_word; then
  6411.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  6412.     ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  6413.     break
  6414.       fi
  6415.     fi
  6416.   done
  6417.   IFS="$ac_save_ifs"
  6418.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  6419.   ;;
  6420. esac
  6421. fi
  6422. XGETTEXT="$ac_cv_path_XGETTEXT"
  6423. if test -n "$XGETTEXT"; then
  6424.   echo "$ac_t""$XGETTEXT" 1>&6
  6425. else
  6426.   echo "$ac_t""no" 1>&6
  6427. fi
  6428.  
  6429.          USE_INCLUDED_LIBINTL=yes
  6430.          CATOBJEXT=.cat
  6431.          INSTOBJEXT=.cat
  6432.          DATADIRNAME=lib
  6433.          INTLDEPS="../intl/libintl.a"
  6434.          INTLLIBS=$INTLDEPS
  6435.          LIBS=`echo $LIBS | sed -e 's/-lintl//'`
  6436.          nls_cv_header_intl=intl/libintl.h
  6437.          nls_cv_header_libgt=intl/libgettext.h
  6438.            fi
  6439. else
  6440.   echo "$ac_t""no" 1>&6
  6441. fi
  6442.  
  6443.       fi
  6444.         fi
  6445.  
  6446.         if test "$CATOBJEXT" = "NONE"; then
  6447.                   nls_cv_use_gnu_gettext=yes
  6448.         fi
  6449.       fi
  6450.  
  6451.       if test "$nls_cv_use_gnu_gettext" = "yes"; then
  6452.                 INTLOBJS="\$(GETTOBJS)"
  6453.         # Extract the first word of "msgfmt", so it can be a program name with args.
  6454. set dummy msgfmt; ac_word=$2
  6455. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6456. echo "configure:6457: checking for $ac_word" >&5
  6457. if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  6458.   echo $ac_n "(cached) $ac_c" 1>&6
  6459. else
  6460.   case "$MSGFMT" in
  6461.   /*)
  6462.   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  6463.   ;;
  6464.   *)
  6465.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  6466.   for ac_dir in $PATH; do
  6467.     test -z "$ac_dir" && ac_dir=.
  6468.     if test -f $ac_dir/$ac_word; then
  6469.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  6470.     ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  6471.     break
  6472.       fi
  6473.     fi
  6474.   done
  6475.   IFS="$ac_save_ifs"
  6476.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
  6477.   ;;
  6478. esac
  6479. fi
  6480. MSGFMT="$ac_cv_path_MSGFMT"
  6481. if test -n "$MSGFMT"; then
  6482.   echo "$ac_t""$MSGFMT" 1>&6
  6483. else
  6484.   echo "$ac_t""no" 1>&6
  6485. fi
  6486.  
  6487.         # Extract the first word of "gmsgfmt", so it can be a program name with args.
  6488. set dummy gmsgfmt; ac_word=$2
  6489. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6490. echo "configure:6491: checking for $ac_word" >&5
  6491. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  6492.   echo $ac_n "(cached) $ac_c" 1>&6
  6493. else
  6494.   case "$GMSGFMT" in
  6495.   /*)
  6496.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  6497.   ;;
  6498.   *)
  6499.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  6500.   for ac_dir in $PATH; do
  6501.     test -z "$ac_dir" && ac_dir=.
  6502.     if test -f $ac_dir/$ac_word; then
  6503.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  6504.       break
  6505.     fi
  6506.   done
  6507.   IFS="$ac_save_ifs"
  6508.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  6509.   ;;
  6510. esac
  6511. fi
  6512. GMSGFMT="$ac_cv_path_GMSGFMT"
  6513. if test -n "$GMSGFMT"; then
  6514.   echo "$ac_t""$GMSGFMT" 1>&6
  6515. else
  6516.   echo "$ac_t""no" 1>&6
  6517. fi
  6518.  
  6519.         # Extract the first word of "xgettext", so it can be a program name with args.
  6520. set dummy xgettext; ac_word=$2
  6521. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6522. echo "configure:6523: checking for $ac_word" >&5
  6523. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  6524.   echo $ac_n "(cached) $ac_c" 1>&6
  6525. else
  6526.   case "$XGETTEXT" in
  6527.   /*)
  6528.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  6529.   ;;
  6530.   *)
  6531.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  6532.   for ac_dir in $PATH; do
  6533.     test -z "$ac_dir" && ac_dir=.
  6534.     if test -f $ac_dir/$ac_word; then
  6535.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  6536.     ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  6537.     break
  6538.       fi
  6539.     fi
  6540.   done
  6541.   IFS="$ac_save_ifs"
  6542.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  6543.   ;;
  6544. esac
  6545. fi
  6546. XGETTEXT="$ac_cv_path_XGETTEXT"
  6547. if test -n "$XGETTEXT"; then
  6548.   echo "$ac_t""$XGETTEXT" 1>&6
  6549. else
  6550.   echo "$ac_t""no" 1>&6
  6551. fi
  6552.  
  6553.         
  6554.     USE_INCLUDED_LIBINTL=yes
  6555.         CATOBJEXT=.gmo
  6556.         INSTOBJEXT=.mo
  6557.         DATADIRNAME=share
  6558.     INTLDEPS="../intl/libintl.a"
  6559.     INTLLIBS=$INTLDEPS
  6560.     LIBS=`echo $LIBS | sed -e 's/-lintl//'`
  6561.         nls_cv_header_intl=intl/libintl.h
  6562.         nls_cv_header_libgt=intl/libgettext.h
  6563.       fi
  6564.  
  6565.             if test "$XGETTEXT" != ":"; then
  6566.             if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
  6567.       : ;
  6568.     else
  6569.       echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
  6570.       XGETTEXT=":"
  6571.     fi
  6572.       fi
  6573.  
  6574.       # We need to process the po/ directory.
  6575.       POSUB=po
  6576.     else
  6577.       DATADIRNAME=share
  6578.       nls_cv_header_intl=intl/libintl.h
  6579.       nls_cv_header_libgt=intl/libgettext.h
  6580.     fi
  6581.  
  6582.     # If this is used in GNU gettext we have to set USE_NLS to `yes'
  6583.     # because some of the sources are only built for this goal.
  6584.     if test "$PACKAGE" = gettext; then
  6585.       USE_NLS=yes
  6586.       USE_INCLUDED_LIBINTL=yes
  6587.     fi
  6588.  
  6589.                 for lang in $ALL_LINGUAS; do
  6590.       GMOFILES="$GMOFILES $lang.gmo"
  6591.       POFILES="$POFILES $lang.po"
  6592.     done
  6593.  
  6594.         
  6595.     
  6596.     
  6597.     
  6598.     
  6599.     
  6600.     
  6601.     
  6602.     
  6603.     
  6604.     
  6605.   
  6606.  
  6607.    if test "x$CATOBJEXT" != "x"; then
  6608.      if test "x$ALL_LINGUAS" = "x"; then
  6609.        LINGUAS=
  6610.      else
  6611.        echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
  6612. echo "configure:6613: checking for catalogs to be installed" >&5
  6613.        NEW_LINGUAS=
  6614.        for lang in ${LINGUAS=$ALL_LINGUAS}; do
  6615.          case "$ALL_LINGUAS" in
  6616.           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
  6617.          esac
  6618.        done
  6619.        LINGUAS=$NEW_LINGUAS
  6620.        echo "$ac_t""$LINGUAS" 1>&6
  6621.      fi
  6622.  
  6623.           if test -n "$LINGUAS"; then
  6624.        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
  6625.      fi
  6626.    fi
  6627.  
  6628.             test -d intl || mkdir intl
  6629.    if test "$CATOBJEXT" = ".cat"; then
  6630.      ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
  6631. echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
  6632. echo "configure:6633: checking for linux/version.h" >&5
  6633. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  6634.   echo $ac_n "(cached) $ac_c" 1>&6
  6635. else
  6636.   cat > conftest.$ac_ext <<EOF
  6637. #line 6638 "configure"
  6638. #include "confdefs.h"
  6639. #include <linux/version.h>
  6640. EOF
  6641. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6642. { (eval echo configure:6643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6643. ac_err=`grep -v '^ *+' conftest.out`
  6644. if test -z "$ac_err"; then
  6645.   rm -rf conftest*
  6646.   eval "ac_cv_header_$ac_safe=yes"
  6647. else
  6648.   echo "$ac_err" >&5
  6649.   echo "configure: failed program was:" >&5
  6650.   cat conftest.$ac_ext >&5
  6651.   rm -rf conftest*
  6652.   eval "ac_cv_header_$ac_safe=no"
  6653. fi
  6654. rm -f conftest*
  6655. fi
  6656. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6657.   echo "$ac_t""yes" 1>&6
  6658.   msgformat=linux
  6659. else
  6660.   echo "$ac_t""no" 1>&6
  6661. msgformat=xopen
  6662. fi
  6663.  
  6664.  
  6665.                sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
  6666.    fi
  6667.       sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
  6668.      $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
  6669.  
  6670.             if test "$PACKAGE" = "gettext"; then
  6671.      GT_NO="#NO#"
  6672.      GT_YES=
  6673.    else
  6674.      GT_NO=
  6675.      GT_YES="#YES#"
  6676.    fi
  6677.    
  6678.    
  6679.  
  6680.             MKINSTALLDIRS=
  6681.    if test $ac_aux_dir; then
  6682.      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
  6683.    fi
  6684.    if test -z $MKINSTALLDIRS; then
  6685.      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  6686.    fi
  6687.    
  6688.  
  6689.          test -d po || mkdir po
  6690.    if test "x$srcdir" != "x."; then
  6691.      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
  6692.        posrcprefix="$srcdir/"
  6693.      else
  6694.        posrcprefix="../$srcdir/"
  6695.      fi
  6696.    else
  6697.      posrcprefix="../"
  6698.    fi
  6699.    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,    $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
  6700.     < $srcdir/po/POTFILES.in > po/POTFILES
  6701.   
  6702.  
  6703.  
  6704. trap '' 1 2 15
  6705. cat > confcache <<\EOF
  6706. # This file is a shell script that caches the results of configure
  6707. # tests run on this system so they can be shared between configure
  6708. # scripts and configure runs.  It is not useful on other systems.
  6709. # If it contains results you don't want to keep, you may remove or edit it.
  6710. #
  6711. # By default, configure uses ./config.cache as the cache file,
  6712. # creating it if it does not exist already.  You can give configure
  6713. # the --cache-file=FILE option to use a different cache file; that is
  6714. # what configure does when it calls configure scripts in
  6715. # subdirectories, so they share the cache.
  6716. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  6717. # config.status only pays attention to the cache file if you give it the
  6718. # --recheck option to rerun configure.
  6719. #
  6720. EOF
  6721. # The following way of writing the cache mishandles newlines in values,
  6722. # but we know of no workaround that is simple, portable, and efficient.
  6723. # So, don't put newlines in cache variables' values.
  6724. # Ultrix sh set writes to stderr and can't be redirected directly,
  6725. # and sets the high bit in the cache file unless we assign to the vars.
  6726. (set) 2>&1 |
  6727.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6728.   *ac_space=\ *)
  6729.     # `set' does not quote correctly, so add quotes (double-quote substitution
  6730.     # turns \\\\ into \\, and sed turns \\ into \).
  6731.     sed -n \
  6732.       -e "s/'/'\\\\''/g" \
  6733.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  6734.     ;;
  6735.   *)
  6736.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  6737.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  6738.     ;;
  6739.   esac >> confcache
  6740. if cmp -s $cache_file confcache; then
  6741.   :
  6742. else
  6743.   if test -w $cache_file; then
  6744.     echo "updating cache $cache_file"
  6745.     cat confcache > $cache_file
  6746.   else
  6747.     echo "not updating unwritable cache $cache_file"
  6748.   fi
  6749. fi
  6750. rm -f confcache
  6751.  
  6752. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  6753.  
  6754. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6755. # Let make expand exec_prefix.
  6756. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6757.  
  6758. # Any assignment to VPATH causes Sun make to only execute
  6759. # the first set of double-colon rules, so remove it if not needed.
  6760. # If there is a colon in the path, we need to keep it.
  6761. if test "x$srcdir" = x.; then
  6762.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  6763. fi
  6764.  
  6765. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  6766.  
  6767. DEFS=-DHAVE_CONFIG_H
  6768.  
  6769. # Without the "./", some shells look in PATH for config.status.
  6770. : ${CONFIG_STATUS=./config.status}
  6771.  
  6772. echo creating $CONFIG_STATUS
  6773. rm -f $CONFIG_STATUS
  6774. cat > $CONFIG_STATUS <<EOF
  6775. #! /bin/sh
  6776. # Generated automatically by configure.
  6777. # Run this file to recreate the current configuration.
  6778. # This directory was configured as follows,
  6779. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  6780. #
  6781. # $0 $ac_configure_args
  6782. #
  6783. # Compiler output produced by configure, useful for debugging
  6784. # configure, is in ./config.log if it exists.
  6785.  
  6786. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  6787. for ac_option
  6788. do
  6789.   case "\$ac_option" in
  6790.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  6791.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  6792.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  6793.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  6794.     echo "$CONFIG_STATUS generated by autoconf version 2.12"
  6795.     exit 0 ;;
  6796.   -help | --help | --hel | --he | --h)
  6797.     echo "\$ac_cs_usage"; exit 0 ;;
  6798.   *) echo "\$ac_cs_usage"; exit 1 ;;
  6799.   esac
  6800. done
  6801.  
  6802. ac_given_srcdir=$srcdir
  6803. ac_given_INSTALL="$INSTALL"
  6804.  
  6805. trap 'rm -fr `echo "Makefile doc/Makefile intl/Makefile lib/Makefile man/Makefile \
  6806. m4/Makefile po/Makefile.in src/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  6807. EOF
  6808. cat >> $CONFIG_STATUS <<EOF
  6809.  
  6810. # Protect against being on the right side of a sed subst in config.status.
  6811. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  6812.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  6813. $ac_vpsub
  6814. $extrasub
  6815. s%@CFLAGS@%$CFLAGS%g
  6816. s%@CPPFLAGS@%$CPPFLAGS%g
  6817. s%@CXXFLAGS@%$CXXFLAGS%g
  6818. s%@DEFS@%$DEFS%g
  6819. s%@LDFLAGS@%$LDFLAGS%g
  6820. s%@LIBS@%$LIBS%g
  6821. s%@exec_prefix@%$exec_prefix%g
  6822. s%@prefix@%$prefix%g
  6823. s%@program_transform_name@%$program_transform_name%g
  6824. s%@bindir@%$bindir%g
  6825. s%@sbindir@%$sbindir%g
  6826. s%@libexecdir@%$libexecdir%g
  6827. s%@datadir@%$datadir%g
  6828. s%@sysconfdir@%$sysconfdir%g
  6829. s%@sharedstatedir@%$sharedstatedir%g
  6830. s%@localstatedir@%$localstatedir%g
  6831. s%@libdir@%$libdir%g
  6832. s%@includedir@%$includedir%g
  6833. s%@oldincludedir@%$oldincludedir%g
  6834. s%@infodir@%$infodir%g
  6835. s%@mandir@%$mandir%g
  6836. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  6837. s%@INSTALL_DATA@%$INSTALL_DATA%g
  6838. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  6839. s%@PACKAGE@%$PACKAGE%g
  6840. s%@VERSION@%$VERSION%g
  6841. s%@SET_MAKE@%$SET_MAKE%g
  6842. s%@MAINT@%$MAINT%g
  6843. s%@DF_PROG@%$DF_PROG%g
  6844. s%@MVDIR_PROG@%$MVDIR_PROG%g
  6845. s%@LN@%$LN%g
  6846. s%@MV@%$MV%g
  6847. s%@RM@%$RM%g
  6848. s%@PERL@%$PERL%g
  6849. s%@CC@%$CC%g
  6850. s%@CPP@%$CPP%g
  6851. s%@RANLIB@%$RANLIB%g
  6852. s%@YACC@%$YACC%g
  6853. s%@LIBOBJS@%$LIBOBJS%g
  6854. s%@U@%$U%g
  6855. s%@ANSI2KNR@%$ANSI2KNR%g
  6856. s%@ALLOCA@%$ALLOCA%g
  6857. s%@USE_NLS@%$USE_NLS%g
  6858. s%@MSGFMT@%$MSGFMT%g
  6859. s%@GMSGFMT@%$GMSGFMT%g
  6860. s%@XGETTEXT@%$XGETTEXT%g
  6861. s%@GENCAT@%$GENCAT%g
  6862. s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
  6863. s%@CATALOGS@%$CATALOGS%g
  6864. s%@CATOBJEXT@%$CATOBJEXT%g
  6865. s%@DATADIRNAME@%$DATADIRNAME%g
  6866. s%@GMOFILES@%$GMOFILES%g
  6867. s%@INSTOBJEXT@%$INSTOBJEXT%g
  6868. s%@INTLDEPS@%$INTLDEPS%g
  6869. s%@INTLLIBS@%$INTLLIBS%g
  6870. s%@INTLOBJS@%$INTLOBJS%g
  6871. s%@POFILES@%$POFILES%g
  6872. s%@POSUB@%$POSUB%g
  6873. s%@GT_NO@%$GT_NO%g
  6874. s%@GT_YES@%$GT_YES%g
  6875. s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
  6876.  
  6877. CEOF
  6878. EOF
  6879.  
  6880. cat >> $CONFIG_STATUS <<\EOF
  6881.  
  6882. # Split the substitutions into bite-sized pieces for seds with
  6883. # small command number limits, like on Digital OSF/1 and HP-UX.
  6884. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  6885. ac_file=1 # Number of current file.
  6886. ac_beg=1 # First line for current file.
  6887. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  6888. ac_more_lines=:
  6889. ac_sed_cmds=""
  6890. while $ac_more_lines; do
  6891.   if test $ac_beg -gt 1; then
  6892.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  6893.   else
  6894.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  6895.   fi
  6896.   if test ! -s conftest.s$ac_file; then
  6897.     ac_more_lines=false
  6898.     rm -f conftest.s$ac_file
  6899.   else
  6900.     if test -z "$ac_sed_cmds"; then
  6901.       ac_sed_cmds="sed -f conftest.s$ac_file"
  6902.     else
  6903.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  6904.     fi
  6905.     ac_file=`expr $ac_file + 1`
  6906.     ac_beg=$ac_end
  6907.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  6908.   fi
  6909. done
  6910. if test -z "$ac_sed_cmds"; then
  6911.   ac_sed_cmds=cat
  6912. fi
  6913. EOF
  6914.  
  6915. cat >> $CONFIG_STATUS <<EOF
  6916.  
  6917. CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile intl/Makefile lib/Makefile man/Makefile \
  6918. m4/Makefile po/Makefile.in src/Makefile"}
  6919. EOF
  6920. cat >> $CONFIG_STATUS <<\EOF
  6921. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  6922.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  6923.   case "$ac_file" in
  6924.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  6925.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  6926.   *) ac_file_in="${ac_file}.in" ;;
  6927.   esac
  6928.  
  6929.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  6930.  
  6931.   # Remove last slash and all that follows it.  Not all systems have dirname.
  6932.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  6933.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  6934.     # The file is in a subdirectory.
  6935.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  6936.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  6937.     # A "../" for each directory in $ac_dir_suffix.
  6938.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  6939.   else
  6940.     ac_dir_suffix= ac_dots=
  6941.   fi
  6942.  
  6943.   case "$ac_given_srcdir" in
  6944.   .)  srcdir=.
  6945.       if test -z "$ac_dots"; then top_srcdir=.
  6946.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  6947.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  6948.   *) # Relative path.
  6949.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  6950.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  6951.   esac
  6952.  
  6953.   case "$ac_given_INSTALL" in
  6954.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  6955.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  6956.   esac
  6957.  
  6958.   echo creating "$ac_file"
  6959.   rm -f "$ac_file"
  6960.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  6961.   case "$ac_file" in
  6962.   *Makefile*) ac_comsub="1i\\
  6963. # $configure_input" ;;
  6964.   *) ac_comsub= ;;
  6965.   esac
  6966.  
  6967.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  6968.   sed -e "$ac_comsub
  6969. s%@configure_input@%$configure_input%g
  6970. s%@srcdir@%$srcdir%g
  6971. s%@top_srcdir@%$top_srcdir%g
  6972. s%@INSTALL@%$INSTALL%g
  6973. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  6974. fi; done
  6975. rm -f conftest.s*
  6976.  
  6977. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  6978. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  6979. #
  6980. # ac_d sets the value in "#define NAME VALUE" lines.
  6981. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  6982. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  6983. ac_dC='\3'
  6984. ac_dD='%g'
  6985. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  6986. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  6987. ac_uB='\([     ]\)%\1#\2define\3'
  6988. ac_uC=' '
  6989. ac_uD='\4%g'
  6990. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  6991. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  6992. ac_eB='$%\1#\2define\3'
  6993. ac_eC=' '
  6994. ac_eD='%g'
  6995.  
  6996. if test "${CONFIG_HEADERS+set}" != set; then
  6997. EOF
  6998. cat >> $CONFIG_STATUS <<EOF
  6999.   CONFIG_HEADERS="config.h"
  7000. EOF
  7001. cat >> $CONFIG_STATUS <<\EOF
  7002. fi
  7003. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  7004.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  7005.   case "$ac_file" in
  7006.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  7007.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  7008.   *) ac_file_in="${ac_file}.in" ;;
  7009.   esac
  7010.  
  7011.   echo creating $ac_file
  7012.  
  7013.   rm -f conftest.frag conftest.in conftest.out
  7014.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  7015.   cat $ac_file_inputs > conftest.in
  7016.  
  7017. EOF
  7018.  
  7019. # Transform confdefs.h into a sed script conftest.vals that substitutes
  7020. # the proper values into config.h.in to produce config.h.  And first:
  7021. # Protect against being on the right side of a sed subst in config.status.
  7022. # Protect against being in an unquoted here document in config.status.
  7023. rm -f conftest.vals
  7024. cat > conftest.hdr <<\EOF
  7025. s/[\\&%]/\\&/g
  7026. s%[\\$`]%\\&%g
  7027. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  7028. s%ac_d%ac_u%gp
  7029. s%ac_u%ac_e%gp
  7030. EOF
  7031. sed -n -f conftest.hdr confdefs.h > conftest.vals
  7032. rm -f conftest.hdr
  7033.  
  7034. # This sed command replaces #undef with comments.  This is necessary, for
  7035. # example, in the case of _POSIX_SOURCE, which is predefined and required
  7036. # on some systems where configure will not decide to define it.
  7037. cat >> conftest.vals <<\EOF
  7038. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  7039. EOF
  7040.  
  7041. # Break up conftest.vals because some shells have a limit on
  7042. # the size of here documents, and old seds have small limits too.
  7043.  
  7044. rm -f conftest.tail
  7045. while :
  7046. do
  7047.   ac_lines=`grep -c . conftest.vals`
  7048.   # grep -c gives empty output for an empty file on some AIX systems.
  7049.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  7050.   # Write a limited-size here document to conftest.frag.
  7051.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  7052.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  7053.   echo 'CEOF
  7054.   sed -f conftest.frag conftest.in > conftest.out
  7055.   rm -f conftest.in
  7056.   mv conftest.out conftest.in
  7057. ' >> $CONFIG_STATUS
  7058.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  7059.   rm -f conftest.vals
  7060.   mv conftest.tail conftest.vals
  7061. done
  7062. rm -f conftest.vals
  7063.  
  7064. cat >> $CONFIG_STATUS <<\EOF
  7065.   rm -f conftest.frag conftest.h
  7066.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  7067.   cat conftest.in >> conftest.h
  7068.   rm -f conftest.in
  7069.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  7070.     echo "$ac_file is unchanged"
  7071.     rm -f conftest.h
  7072.   else
  7073.     # Remove last slash and all that follows it.  Not all systems have dirname.
  7074.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  7075.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  7076.       # The file is in a subdirectory.
  7077.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  7078.     fi
  7079.     rm -f $ac_file
  7080.     mv conftest.h $ac_file
  7081.   fi
  7082. fi; done
  7083.  
  7084. EOF
  7085.  
  7086. cat >> $CONFIG_STATUS <<EOF
  7087. ac_sources="$nls_cv_header_libgt"
  7088. ac_dests="$nls_cv_header_intl"
  7089. EOF
  7090.  
  7091. cat >> $CONFIG_STATUS <<\EOF
  7092. srcdir=$ac_given_srcdir
  7093. while test -n "$ac_sources"; do
  7094.   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  7095.   set $ac_sources; ac_source=$1; shift; ac_sources=$*
  7096.  
  7097.   echo "linking $srcdir/$ac_source to $ac_dest"
  7098.  
  7099.   if test ! -r $srcdir/$ac_source; then
  7100.     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
  7101.   fi
  7102.   rm -f $ac_dest
  7103.  
  7104.   # Make relative symlinks.
  7105.   # Remove last slash and all that follows it.  Not all systems have dirname.
  7106.   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
  7107.   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
  7108.     # The dest file is in a subdirectory.
  7109.     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
  7110.     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
  7111.     # A "../" for each directory in $ac_dest_dir_suffix.
  7112.     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
  7113.   else
  7114.     ac_dest_dir_suffix= ac_dots=
  7115.   fi
  7116.  
  7117.   case "$srcdir" in
  7118.   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
  7119.   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
  7120.   esac
  7121.  
  7122.   # Make a symlink if possible; otherwise try a hard link.
  7123.   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
  7124.     ln $srcdir/$ac_source $ac_dest; then :
  7125.   else
  7126.     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
  7127.   fi
  7128. done
  7129. EOF
  7130. cat >> $CONFIG_STATUS <<EOF
  7131.  
  7132.  
  7133. EOF
  7134. cat >> $CONFIG_STATUS <<\EOF
  7135. test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  7136. sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
  7137. exit 0
  7138. EOF
  7139. chmod +x $CONFIG_STATUS
  7140. rm -fr confdefs* $ac_clean_files
  7141. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  7142.  
  7143.